Set immune to zombification always

This commit is contained in:
fullwall 2021-01-09 08:35:16 +08:00
parent 97fae0a7e4
commit 7023ac4c54
3 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ public class HoglinController extends MobEntityController {
public void mobTick() {
if (npc != null) {
NMSImpl.updateMinecraftAIState(npc, this);
setImmuneToZombification(npc.isProtected());
setImmuneToZombification(true);
}
super.mobTick();
if (npc != null) {

View File

@ -177,7 +177,7 @@ public class PiglinBruteController extends MobEntityController {
public void mobTick() {
if (npc != null) {
NMSImpl.updateMinecraftAIState(npc, this);
setImmuneToZombification(npc.isProtected());
setImmuneToZombification(true);
}
super.mobTick();
if (npc != null) {

View File

@ -172,7 +172,7 @@ public class PiglinController extends MobEntityController {
public void mobTick() {
if (npc != null) {
NMSImpl.updateMinecraftAIState(npc, this);
setImmuneToZombification(npc.isProtected());
setImmuneToZombification(true);
}
super.mobTick();
if (npc != null) {