mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +01:00
Tempfix all the things
This commit is contained in:
parent
6db2fa9ca6
commit
ad31ba7221
@ -24,6 +24,7 @@ public class Powered extends Trait implements Toggleable {
|
||||
|
||||
@Override
|
||||
public void onNPCSpawn() {
|
||||
if (npc.getBukkitEntity() instanceof Creeper)
|
||||
((Creeper) npc.getBukkitEntity()).setPowered(powered);
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ public class Saddle extends Trait implements Toggleable, Listener {
|
||||
|
||||
@Override
|
||||
public void onNPCSpawn() {
|
||||
if (npc.getBukkitEntity() instanceof Pig)
|
||||
((Pig) npc.getBukkitEntity()).setSaddle(saddle);
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ public class WoolColor extends Trait implements Listener {
|
||||
|
||||
@Override
|
||||
public void onNPCSpawn() {
|
||||
if (npc.getBukkitEntity() instanceof Sheep)
|
||||
((Sheep) npc.getBukkitEntity()).setColor(color);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user