Skip to content

Commit

Permalink
Removed call to Island#getCenter when adding islands to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Oct 21, 2022
1 parent 3e72c53 commit 38b9cba
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -38,8 +38,7 @@ public DefaultIslandsContainer(SuperiorSkyblockPlugin plugin) {

@Override
public void addIsland(Island island) {
Location islandLocation = island.getCenter(plugin.getSettings().getWorlds().getDefaultWorld());
this.islandsByPositions.put(IslandPosition.of(islandLocation), island);
this.islandsByPositions.put(IslandPosition.of(island), island);

this.islandsByUUID.put(island.getUniqueId(), island);

Expand Down

0 comments on commit 38b9cba

Please sign in to comment.