mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-18 06:03:37 +01:00
Removed duplicate sub-expression in if statement.
This commit is contained in:
parent
941d9d3dc5
commit
8743ac50ef
@ -40,7 +40,6 @@ public class MobSpawnListener extends AbstractFlagListener {
|
||||
|| e.getSpawnReason().equals(SpawnReason.CHUNK_GEN)
|
||||
|| e.getSpawnReason().equals(SpawnReason.DEFAULT)
|
||||
|| e.getSpawnReason().equals(SpawnReason.MOUNT)
|
||||
|| e.getSpawnReason().equals(SpawnReason.JOCKEY)
|
||||
|| e.getSpawnReason().equals(SpawnReason.NETHER_PORTAL)) {
|
||||
Optional<Island> island = plugin.getIslands().getIslandAt(e.getLocation());
|
||||
if (island.isPresent()) {
|
||||
|
Loading…
Reference in New Issue
Block a user