Possible fix for CITIZENS-443

This commit is contained in:
fullwall 2013-02-15 17:27:45 +08:00
parent 1668230568
commit 22f54da17a
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ public class Controllable extends Trait implements Toggleable, CommandConfigurab
@Override
public void load(DataKey key) throws NPCLoadException {
explicitType = Util.matchEntityType(key.getString("explicittype"));
if (key.keyExists("explicittype"))
explicitType = Util.matchEntityType(key.getString("explicittype"));
}
private void loadController() {