Attempt at fixing the Reflection crash
This commit is contained in:
parent
d12082cc17
commit
8b352d0f23
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue