#Adding NMS EntityPlayer to server causes NPE

1 messages · Page 1 of 1 (latest)

torn ether
#

When adding a custom entityplayer i've made to the server (by getting the craftworld and invoking addEntity), I get this error: Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.item.ItemStack.isEmpty()" because "itemstack" is null Full stacktrace: https://paste.md-5.net/aheruloyep.sql

hot juniper
torn ether
hot juniper
#

The line the error was thrown on is blank. Can you re-send it when that error is being thrown? @torn ether

torn ether
#

(when I am adding the entity to the server through WorldServer.addEntity

#

I just deleted a lot of code, i've been trying to do this for a week now and i've come across a lot

#

but still haven't managed to figure it out

hot juniper
torn ether
#

It is the same code

#

When I’m adding the entity to the server it’s throwing the npe

#

I’ve tried entityhuman instead so I can register it to the list of mobs but it’s still throwing an npe

sinful rock
#

lol