Attempt at fixing the Reflection crash
This commit is contained in:
parent
d12082cc17
commit
8b352d0f23
|
@ -24,8 +24,8 @@ public class TemptEventHandler
|
||||||
if (!(entity instanceof EntityLiving))
|
if (!(entity instanceof EntityLiving))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//TODO: FEATURE Remove Reflection
|
//TODO: FEATURE Remove Reflection tasks
|
||||||
EntityAITasks tasks = ObfuscationReflectionHelper.getPrivateValue(EntityLiving.class, ((EntityLiving)entity), new String[] { "tasks" });
|
EntityAITasks tasks = ObfuscationReflectionHelper.getPrivateValue(EntityLiving.class, ((EntityLiving)entity), new String[] { "field_75732_c" });
|
||||||
|
|
||||||
if (entity instanceof EntityChicken)
|
if (entity instanceof EntityChicken)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue