Attempt at fixing the Reflection crash

This commit is contained in:
Adubbz 2014-01-12 16:49:24 +11:00
parent d12082cc17
commit 8b352d0f23
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{