Fixed bugg where the client crashed after getting an addEntityPacket