ignore refreshing non allowed properties
This commit is contained in:
parent
c50e2fd0d4
commit
d75f260935
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ public class NpcImpl extends Viewable implements Npc {
|
|||
}
|
||||
|
||||
private <T> void UNSAFE_refreshProperty(EntityPropertyImpl<T> property) {
|
||||
if (!type.isAllowedProperty(property)) return;
|
||||
for (Player viewer : getViewers()) {
|
||||
List<EntityData> data = property.applyStandalone(viewer, entity, true);
|
||||
if (!data.isEmpty()) packetFactory.sendMetadata(viewer, entity, data);
|
||||
|
|
Loading…
Reference in a new issue