Commits

Nathan (antiPerson) authored and md_5 committed f6a39d3ccf0
#809: Add spawn and transform reasons for piglin zombification.
No tags

nms-patches/EntityPiglinAbstract.patch

Added
1 +--- a/net/minecraft/server/EntityPiglinAbstract.java
2 ++++ b/net/minecraft/server/EntityPiglinAbstract.java
3 +@@ -81,7 +81,7 @@
4 + }
5 +
6 + protected void c(WorldServer worldserver) {
7 +- EntityPigZombie entitypigzombie = (EntityPigZombie) this.a(EntityTypes.ZOMBIFIED_PIGLIN, true);
8 ++ EntityPigZombie entitypigzombie = (EntityPigZombie) this.a(EntityTypes.ZOMBIFIED_PIGLIN, true, org.bukkit.event.entity.EntityTransformEvent.TransformReason.PIGLIN_ZOMBIFIED, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.PIGLIN_ZOMBIFIED); // CraftBukkit - add spawn and transform reasons
9 +
10 + if (entitypigzombie != null) {
11 + entitypigzombie.addEffect(new MobEffect(MobEffects.CONFUSION, 200, 0));
12 +@@ -96,7 +96,7 @@
13 + @Nullable
14 + @Override
15 + public EntityLiving getGoalTarget() {
16 +- return (EntityLiving) this.bg.getMemory(MemoryModuleType.ATTACK_TARGET).orElse((Object) null);
17 ++ return (EntityLiving) this.bg.getMemory(MemoryModuleType.ATTACK_TARGET).orElse(null); // CraftBukkit - decompile error
18 + }
19 +
20 + protected boolean eO() {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut