Fixed mob spawning disablement setting blocking snowballs.
This commit is contained in:
@@ -578,7 +578,7 @@ public class ArenaManager implements Listener {
|
|||||||
* @param event The event.
|
* @param event The event.
|
||||||
*/
|
*/
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onEntitySpawn(final EntitySpawnEvent event){
|
public void onCreatureSpawn(final CreatureSpawnEvent event){
|
||||||
final Arena arena = this.getArenaByLocation(event.getEntity().getLocation());
|
final Arena arena = this.getArenaByLocation(event.getEntity().getLocation());
|
||||||
if (arena != null && !arena.isMobSpawningAllowed()){
|
if (arena != null && !arena.isMobSpawningAllowed()){
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user