mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-03 06:57:41 +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.CHUNK_GEN)
|
||||||
|| e.getSpawnReason().equals(SpawnReason.DEFAULT)
|
|| e.getSpawnReason().equals(SpawnReason.DEFAULT)
|
||||||
|| e.getSpawnReason().equals(SpawnReason.MOUNT)
|
|| e.getSpawnReason().equals(SpawnReason.MOUNT)
|
||||||
|| e.getSpawnReason().equals(SpawnReason.JOCKEY)
|
|
||||||
|| e.getSpawnReason().equals(SpawnReason.NETHER_PORTAL)) {
|
|| e.getSpawnReason().equals(SpawnReason.NETHER_PORTAL)) {
|
||||||
Optional<Island> island = plugin.getIslands().getIslandAt(e.getLocation());
|
Optional<Island> island = plugin.getIslands().getIslandAt(e.getLocation());
|
||||||
if (island.isPresent()) {
|
if (island.isPresent()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user