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