From 5296d2af0f143e9c74eeccdbadf5f037ed918577 Mon Sep 17 00:00:00 2001 From: bloodshot Date: Wed, 2 Dec 2020 02:23:17 -0500 Subject: [PATCH] Fix async chunk load during visual revert. Fixes #319 --- bukkit/src/main/java/com/griefdefender/GDPlayerData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/com/griefdefender/GDPlayerData.java b/bukkit/src/main/java/com/griefdefender/GDPlayerData.java index 196ccfd..17e3dc4 100644 --- a/bukkit/src/main/java/com/griefdefender/GDPlayerData.java +++ b/bukkit/src/main/java/com/griefdefender/GDPlayerData.java @@ -359,7 +359,7 @@ private void revertVisualBlocks(Player player, GDClaim claim, UUID visualUniqueI for (int i = 0; i < visualTransactions.size(); i++) { BlockSnapshot snapshot = visualTransactions.get(i).getOriginal(); // If original block does not exist or chunk is not loaded, do not send to player - if (!snapshot.matchesWorldState() || !snapshot.getLocation().getChunk().isLoaded()) { + if (!snapshot.getLocation().getChunk().isLoaded() || !snapshot.matchesWorldState()) { if (claim != null) { claim.markVisualDirty = true; }