mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2025-01-03 18:17:49 +01:00
Fixed incorrect comparison.
This commit is contained in:
parent
6ec47af51f
commit
26cca9be21
@ -78,7 +78,7 @@ public abstract class ModifyworldListener implements Listener {
|
||||
} else if (entity instanceof Tameable) {
|
||||
Tameable animal = (Tameable) entity;
|
||||
|
||||
return "animal." + (entityName == "ozelot" ? "ocelot" : entityName) + (animal.isTamed() ? "." + ((Player) animal.getOwner()).getName() : "");
|
||||
return "animal." + (entityName.equals("ozelot") ? "ocelot" : entityName) + (animal.isTamed() ? "." + ((Player) animal.getOwner()).getName() : "");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user