mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-07-04 10:45:15 +02: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