mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-06 19:28:20 +01:00
Fix async chunk load during visual revert. Fixes #319
This commit is contained in:
parent
3b2dd54f2b
commit
5296d2af0f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user