From 3411a504e0528dd835da02d0fe056f114227a5a8 Mon Sep 17 00:00:00 2001 From: D3v1s0m <49519439+D3v1s0m@users.noreply.github.com> Date: Mon, 10 Jul 2023 18:55:32 +0530 Subject: [PATCH] fixed value in standalone metadata packet sending --- plugin/src/main/java/lol/pyr/znpcsplus/npc/NpcImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/npc/NpcImpl.java b/plugin/src/main/java/lol/pyr/znpcsplus/npc/NpcImpl.java index cd4407b..533378f 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/npc/NpcImpl.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/npc/NpcImpl.java @@ -116,7 +116,7 @@ public class NpcImpl extends Viewable implements Npc { private void UNSAFE_refreshProperty(EntityPropertyImpl property) { for (Player viewer : getViewers()) { - List data = property.makeStandaloneData(property.getDefaultValue(), viewer, entity, true); + List data = property.makeStandaloneData(getProperty(property), viewer, entity, true); if (data.size() > 0) packetFactory.sendMetadata(viewer, entity, data); } }