Fixed mob spawning disablement setting blocking snowballs.

This commit is contained in:
2022-06-04 16:04:37 -04:00
parent d507379a5f
commit 687d5bae9d

View File

@@ -578,7 +578,7 @@ public class ArenaManager implements Listener {
* @param event The event.
*/
@EventHandler(ignoreCancelled = true)
public void onEntitySpawn(final EntitySpawnEvent event){
public void onCreatureSpawn(final CreatureSpawnEvent event){
final Arena arena = this.getArenaByLocation(event.getEntity().getLocation());
if (arena != null && !arena.isMobSpawningAllowed()){
event.setCancelled(true);