Fixed incorrect comparison.

This commit is contained in:
Psithief 2012-06-06 14:55:09 +08:00
parent 6ec47af51f
commit 26cca9be21

View File

@ -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() : "");
}