mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-29 14:15: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
|
@Override
|
||||||
public void onNPCSpawn() {
|
public void onNPCSpawn() {
|
||||||
|
if (npc.getBukkitEntity() instanceof Creeper)
|
||||||
((Creeper) npc.getBukkitEntity()).setPowered(powered);
|
((Creeper) npc.getBukkitEntity()).setPowered(powered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ public class Saddle extends Trait implements Toggleable, Listener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNPCSpawn() {
|
public void onNPCSpawn() {
|
||||||
|
if (npc.getBukkitEntity() instanceof Pig)
|
||||||
((Pig) npc.getBukkitEntity()).setSaddle(saddle);
|
((Pig) npc.getBukkitEntity()).setSaddle(saddle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ public class WoolColor extends Trait implements Listener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNPCSpawn() {
|
public void onNPCSpawn() {
|
||||||
|
if (npc.getBukkitEntity() instanceof Sheep)
|
||||||
((Sheep) npc.getBukkitEntity()).setColor(color);
|
((Sheep) npc.getBukkitEntity()).setColor(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user