mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Remove some MC behaviours from chickens and snowmen
This commit is contained in:
parent
abcc9b9418
commit
960b45e31a
@ -205,5 +205,13 @@ public class ChickenController extends MobEntityController {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void n() {
|
||||
if (npc != null) {
|
||||
this.bD = 100; // egg timer
|
||||
}
|
||||
super.n();
|
||||
}
|
||||
}
|
||||
}
|
@ -180,6 +180,18 @@ public class SnowmanController extends MobEntityController {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void n() {
|
||||
boolean allowsGriefing = this.world.getGameRules().getBoolean("mobGriefing");
|
||||
if (npc != null) {
|
||||
this.world.getGameRules().set("mobGriefing", "false");
|
||||
}
|
||||
super.n();
|
||||
if (npc != null) {
|
||||
this.world.getGameRules().set("mobGriefing", Boolean.toString(allowsGriefing));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSize(float f, float f1) {
|
||||
if (npc == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user