World for HitConnection entity is null (not allowed by Forge)
whizzball1 opened this issue ยท 2 comments
Hello!
My mod, Apathetic Mobs, is currently crashing in conjunction with your mod. This is because my mod checks all entities during AttachCapabilitiesEvent and has to check if the entity is on the server. This means I must check !e.getObject().getEntityWorld().isRemote
. When your entity, HitConnection, runs through my function, I assume getEntityWorld() is not null, because the documentation for getEntityWorld() says that it should never return null.
In order to fix this, Forge says that you should use the overworld if your entity is not in any world. Meanwhile, I can fix this on my end by checking instanceof EntityLiving
before the world check (which I should have been doing all along, lol). But this could cause other problems in the future! So please fix it as soon as you can.
Thank you!
Release 2.1.6 is now out!