Skip to content

Commit

Permalink
Migrate PIG_ZOMBIE type in MobType
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jun 30, 2020
1 parent 2d01689 commit 47dd771
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/net/citizensnpcs/api/trait/trait/MobType.java
Expand Up @@ -30,7 +30,11 @@ public EntityType getType() {
@SuppressWarnings("deprecation")
public void load(DataKey key) {
try {
type = EntityType.valueOf(key.getString(""));
if (key.getString("").equals("PIG_ZOMBIE")) {
type = EntityType.ZOMBIFIED_PIGLIN;
} else {
type = EntityType.valueOf(key.getString(""));
}
} catch (IllegalArgumentException ex) {
type = EntityType.fromName(key.getString(""));
}
Expand Down

0 comments on commit 47dd771

Please sign in to comment.