Fix async chunk load during visual revert. Fixes #319

This commit is contained in:
bloodshot 2020-12-02 02:23:17 -05:00
parent 3b2dd54f2b
commit 5296d2af0f
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ public class GDPlayerData implements PlayerData {
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;
}