fix hologram order when importing from ZNPCs

This commit is contained in:
D3v1s0m 2024-05-29 23:34:47 +05:30
parent 2ca5dd8c5c
commit a7bcd20e00
No known key found for this signature in database
GPG Key ID: FA1F770C7B1D40C1

@ -157,6 +157,7 @@ public class ZNpcImporter implements DataImporter {
HologramImpl hologram = npc.getHologram(); HologramImpl hologram = npc.getHologram();
hologram.setOffset(model.getHologramHeight()); hologram.setOffset(model.getHologramHeight());
Collections.reverse(model.getHologramLines());
for (String raw : model.getHologramLines()) { for (String raw : model.getHologramLines()) {
Component line = textSerializer.deserialize(raw); Component line = textSerializer.deserialize(raw);
hologram.addTextLineComponent(line); hologram.addTextLineComponent(line);