20 lines
909 B
Diff
20 lines
909 B
Diff
--- a/net/minecraft/entity/monster/piglin/AbstractPiglinEntity.java
|
|
+++ b/net/minecraft/entity/monster/piglin/AbstractPiglinEntity.java
|
|
@@ -83,7 +83,7 @@
|
|
this.field_242334_c = 0;
|
|
}
|
|
|
|
- if (this.field_242334_c > 300) {
|
|
+ if (this.field_242334_c > 300 && net.minecraftforge.event.ForgeEventFactory.canLivingConvert(this, EntityType.field_233592_ba_, (timer) -> this.field_242334_c = timer)) {
|
|
this.func_241848_eP();
|
|
this.func_234416_a_((ServerWorld)this.field_70170_p);
|
|
}
|
|
@@ -98,6 +98,7 @@
|
|
ZombifiedPiglinEntity zombifiedpiglinentity = this.func_233656_b_(EntityType.field_233592_ba_, true);
|
|
if (zombifiedpiglinentity != null) {
|
|
zombifiedpiglinentity.func_195064_c(new EffectInstance(Effects.field_76431_k, 200, 0));
|
|
+ net.minecraftforge.event.ForgeEventFactory.onLivingConvert(this, zombifiedpiglinentity);
|
|
}
|
|
|
|
}
|