Skip to content

Commit

Permalink
Fixed teleporting to schematics not detecting blocks correctly after …
Browse files Browse the repository at this point in the history
…they were placed (#1008)
  • Loading branch information
OmerBenGera committed Mar 24, 2022
1 parent 871af57 commit 102ea75
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -188,7 +188,7 @@ public void createIsland(SuperiorPlayer superiorPlayer, String schemName, BigDec

IslandsDatabaseBridge.insertIsland(island);

superiorPlayer.runIfOnline(player -> {
Executor.sync(() -> superiorPlayer.runIfOnline(player -> {
Message.CREATE_ISLAND.send(superiorPlayer, SBlockPosition.of(islandLocation),
System.currentTimeMillis() - startTime);
if (teleportPlayer) {
Expand All @@ -205,7 +205,7 @@ public void createIsland(SuperiorPlayer superiorPlayer, String schemName, BigDec
}
});
}
});
}), 1L);
} else {
error.printStackTrace();
PluginDebugger.debug(error);
Expand Down

0 comments on commit 102ea75

Please sign in to comment.