chore: minor improvements to processing-related code (#2271)

This commit is contained in:
Jordan
2023-06-06 18:21:02 +01:00
committed by GitHub
parent bdb170a5ca
commit 5504811f11
7 changed files with 16 additions and 20 deletions

View File

@ -490,9 +490,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
bitMask |= 1 << getSectionIndex;
char[] tmp = set.load(layerNo);
char[] setArr = new char[4096];
System.arraycopy(tmp, 0, setArr, 0, 4096);
char[] setArr = set.load(layerNo);
// synchronise on internal section to avoid circular locking with a continuing edit if the chunk was
// submitted to keep loaded internal chunks to queue target size.