mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-07 19:38:56 +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++) {
|
for (int i = 0; i < visualTransactions.size(); i++) {
|
||||||
BlockSnapshot snapshot = visualTransactions.get(i).getOriginal();
|
BlockSnapshot snapshot = visualTransactions.get(i).getOriginal();
|
||||||
// If original block does not exist or chunk is not loaded, do not send to player
|
// 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) {
|
if (claim != null) {
|
||||||
claim.markVisualDirty = true;
|
claim.markVisualDirty = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user