3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00

Remove deep synchronisation that is a very plausible cause of circular locking.

This may be a fix for #685
Dieser Commit ist enthalten in:
dordsor21 2020-10-07 15:52:48 +01:00 committet von MattBDev
Ursprung ae38880e1b
Commit d5d09ba586

Datei anzeigen

@ -21,7 +21,7 @@ public abstract class CharBlocks implements IBlocks {
}; };
public static final Section EMPTY = new Section() { public static final Section EMPTY = new Section() {
@Override @Override
public final synchronized char[] get(CharBlocks blocks, int layer) { public final char[] get(CharBlocks blocks, int layer) {
char[] arr = blocks.blocks[layer]; char[] arr = blocks.blocks[layer];
if (arr == null) { if (arr == null) {
arr = blocks.blocks[layer] = blocks.update(layer, null); arr = blocks.blocks[layer] = blocks.update(layer, null);