Skip to content

Commit

Permalink
Remove Duplicate Spawner (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bierque Jason authored Jan 20, 2022
1 parent 7475d53 commit aae67e7
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ public void monitorBlockPlace(BlockPlaceEvent event) {
islandSpawners.setAmount(islandSpawners.getAmount() + 1);
}

if (event.getBlock().getState() instanceof CreatureSpawner) {
CreatureSpawner creatureSpawner = (CreatureSpawner) event.getBlock().getState();
IslandSpawners islandSpawners = IridiumSkyblock.getInstance().getIslandManager().getIslandSpawners(island, creatureSpawner.getSpawnedType());
islandSpawners.setAmount(islandSpawners.getAmount() + 1);
}
});
}

Expand Down

0 comments on commit aae67e7

Please sign in to comment.