mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 03:05:16 +01:00
Remove code smell on MobSpawnListener
This commit is contained in:
parent
8389c6c2af
commit
0324d3e123
@ -33,7 +33,7 @@ public class MobSpawnListener extends FlagListener {
|
||||
return false;
|
||||
}
|
||||
switch (e.getSpawnReason()) {
|
||||
// Natural
|
||||
// Natural
|
||||
case DEFAULT:
|
||||
case DROWNED:
|
||||
case JOCKEY:
|
||||
@ -62,6 +62,7 @@ public class MobSpawnListener extends FlagListener {
|
||||
e.setCancelled(cancel);
|
||||
return cancel;
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user