fixed value in standalone metadata packet sending

This commit is contained in:
D3v1s0m 2023-07-10 18:55:32 +05:30
parent acd953e460
commit 3411a504e0
No known key found for this signature in database
GPG Key ID: 3B6EC35367B8D82E

@ -116,7 +116,7 @@ public class NpcImpl extends Viewable implements Npc {
private <T> void UNSAFE_refreshProperty(EntityPropertyImpl<T> property) {
for (Player viewer : getViewers()) {
List<EntityData> data = property.makeStandaloneData(property.getDefaultValue(), viewer, entity, true);
List<EntityData> data = property.makeStandaloneData(getProperty(property), viewer, entity, true);
if (data.size() > 0) packetFactory.sendMetadata(viewer, entity, data);
}
}