Update SpawnerFunctions.java