#Stackoverflow Error

1 messages · Page 1 of 1 (latest)

loud yoke
#

Why does it throw me an stackoverflow error?:

for(int i = 0; i < 4; i++) event.getLocation().getWorld().spawnEntity(event.getLocation(), event.getEntityType());
sweet loom
#

show us the error

#

are you doing this in entity spawn event or something?

#

well, you spawn a New entity. It calls an Spawn Event again, and again

loud yoke
#

exactly

#

how can I avoid this if it's possible

#

i need to spawn more than one mob

sweet loom
loud yoke
#

nvm

#

ty