mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
Default type to player if not found
This commit is contained in:
parent
6d5b73a2dd
commit
4dd0cb03a3
@ -280,7 +280,7 @@ public class Citizens extends JavaPlugin {
|
||||
Messaging.log("Could not find a name for the NPC with ID '" + id + "'.");
|
||||
continue;
|
||||
}
|
||||
String unparsedEntityType = key.getString("traits.type");
|
||||
String unparsedEntityType = key.getString("traits.type", "PLAYER");
|
||||
EntityType type = EntityType.fromName(unparsedEntityType);
|
||||
if (type == null) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user