Fix Sheared trait

This commit is contained in:
fullwall 2013-06-28 17:39:58 +08:00
parent 8d7d8a7261
commit 59996b44af

View File

@ -24,7 +24,8 @@ public class Sheared extends Trait implements Toggleable {
@Override
public void onSpawn() {
((Sheep) npc.getBukkitEntity()).setSheared(sheared);
if (npc.getBukkitEntity() instanceof Sheep)
((Sheep) npc.getBukkitEntity()).setSheared(sheared);
}
@Override