Update spawnEvent.java

Disallowed recursive calls