Remove some MC behaviours from chickens and snowmen

This commit is contained in:
fullwall 2016-07-31 16:03:01 +08:00
parent abcc9b9418
commit 960b45e31a
2 changed files with 20 additions and 0 deletions

View File

@ -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();
}
}
}

View File

@ -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) {