From 8b352d0f23d294d7657f550fd6329fd8e52a5e11 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 12 Jan 2014 16:49:24 +1100 Subject: [PATCH] Attempt at fixing the Reflection crash --- .../common/eventhandler/entity/TemptEventHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/biomesoplenty/common/eventhandler/entity/TemptEventHandler.java b/src/main/java/biomesoplenty/common/eventhandler/entity/TemptEventHandler.java index 55f204858..0cd11b988 100644 --- a/src/main/java/biomesoplenty/common/eventhandler/entity/TemptEventHandler.java +++ b/src/main/java/biomesoplenty/common/eventhandler/entity/TemptEventHandler.java @@ -24,8 +24,8 @@ public class TemptEventHandler if (!(entity instanceof EntityLiving)) return; - //TODO: FEATURE Remove Reflection - EntityAITasks tasks = ObfuscationReflectionHelper.getPrivateValue(EntityLiving.class, ((EntityLiving)entity), new String[] { "tasks" }); + //TODO: FEATURE Remove Reflection tasks + EntityAITasks tasks = ObfuscationReflectionHelper.getPrivateValue(EntityLiving.class, ((EntityLiving)entity), new String[] { "field_75732_c" }); if (entity instanceof EntityChicken) {