mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
fix: always set createCopy status on chunk get as chunks are cached (#2567)
- fixes #2539
This commit is contained in:
@ -148,6 +148,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
throw new IllegalStateException("Attempting to set if chunk GET should create copy, but it is not call-locked.");
|
||||
}
|
||||
this.createCopy = createCopy;
|
||||
// Increment regardless of whether copy will be created or not to return null from getCopy()
|
||||
return ++this.copyKey;
|
||||
}
|
||||
|
||||
|
@ -153,6 +153,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
throw new IllegalStateException("Attempting to set if chunk GET should create copy, but it is not call-locked.");
|
||||
}
|
||||
this.createCopy = createCopy;
|
||||
// Increment regardless of whether copy will be created or not to return null from getCopy()
|
||||
return ++this.copyKey;
|
||||
}
|
||||
|
||||
|
@ -156,6 +156,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
throw new IllegalStateException("Attempting to set if chunk GET should create copy, but it is not call-locked.");
|
||||
}
|
||||
this.createCopy = createCopy;
|
||||
// Increment regardless of whether copy will be created or not to return null from getCopy()
|
||||
return ++this.copyKey;
|
||||
}
|
||||
|
||||
|
@ -156,6 +156,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
throw new IllegalStateException("Attempting to set if chunk GET should create copy, but it is not call-locked.");
|
||||
}
|
||||
this.createCopy = createCopy;
|
||||
// Increment regardless of whether copy will be created or not to return null from getCopy()
|
||||
return ++this.copyKey;
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
throw new IllegalStateException("Attempting to set if chunk GET should create copy, but it is not call-locked.");
|
||||
}
|
||||
this.createCopy = createCopy;
|
||||
// Increment regardless of whether copy will be created or not to return null from getCopy()
|
||||
return ++this.copyKey;
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
throw new IllegalStateException("Attempting to set if chunk GET should create copy, but it is not call-locked.");
|
||||
}
|
||||
this.createCopy = createCopy;
|
||||
// Increment regardless of whether copy will be created or not to return null from getCopy()
|
||||
return ++this.copyKey;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user