temp fix for null values in setting property
This commit is contained in:
parent
14ff80b3ef
commit
8129405de8
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ public class NpcImpl extends Viewable implements Npc {
|
|||
}
|
||||
|
||||
public <T> void setProperty(EntityPropertyImpl<T> key, T value) {
|
||||
if (value == null) return;
|
||||
if (value.equals(key.getDefaultValue())) removeProperty(key);
|
||||
else propertyMap.put(key, value);
|
||||
_refreshMeta();
|
||||
|
|
Loading…
Reference in a new issue