From f7258930059f2cc5611609af6a7d718a208b1e9c Mon Sep 17 00:00:00 2001 From: aPunch Date: Sun, 11 Mar 2012 16:46:24 -0500 Subject: [PATCH] Prevent lightning from morphing pigs into pig zombies. This fixes CITIZENS-17. --- .../java/net/citizensnpcs/npc/entity/CitizensPigNPC.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/citizensnpcs/npc/entity/CitizensPigNPC.java b/src/main/java/net/citizensnpcs/npc/entity/CitizensPigNPC.java index 5785e8b60..bd064a889 100644 --- a/src/main/java/net/citizensnpcs/npc/entity/CitizensPigNPC.java +++ b/src/main/java/net/citizensnpcs/npc/entity/CitizensPigNPC.java @@ -4,6 +4,7 @@ import net.citizensnpcs.npc.CitizensMobNPC; import net.citizensnpcs.npc.CitizensNPCManager; import net.minecraft.server.EntityPig; +import net.minecraft.server.EntityWeatherLighting; import net.minecraft.server.PathfinderGoalSelector; import net.minecraft.server.World; @@ -31,5 +32,9 @@ public class CitizensPigNPC extends CitizensMobNPC { @Override public void d_() { } + + @Override + public void a(EntityWeatherLighting entityweatherlighting) { + } } } \ No newline at end of file