mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 03:57:35 +01:00
Fix Sheared trait
This commit is contained in:
parent
8d7d8a7261
commit
59996b44af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user