Fixed dinnerbone property removal not updating.

This commit is contained in:
D3v1s0m 2023-07-01 12:28:18 +05:30
parent 4b2a8498a6
commit e180843efd
No known key found for this signature in database
GPG Key ID: 3B6EC35367B8D82E

@ -150,6 +150,7 @@ public class NpcImpl extends Viewable implements Npc {
propertyMap.remove(key); propertyMap.remove(key);
UNSAFE_refreshMeta(); UNSAFE_refreshMeta();
if (key.getName().equalsIgnoreCase("glow")) UNSAFE_remakeTeam(); if (key.getName().equalsIgnoreCase("glow")) UNSAFE_remakeTeam();
else if (key.getName().equalsIgnoreCase("dinnerbone")) respawn();
} }
public Set<EntityPropertyImpl<?>> getAppliedProperties() { public Set<EntityPropertyImpl<?>> getAppliedProperties() {