mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
Avoid memory barrier on replace
This commit is contained in:
parent
c58d84bb5d
commit
d93e302d2a
@ -268,7 +268,7 @@ final class PaletteImpl implements Palette, Cloneable {
|
||||
cache[index] = getPaletteIndex(newValue);
|
||||
});
|
||||
// Set values to final array
|
||||
count.set(0);
|
||||
count.setPlain(0);
|
||||
setAll((x, y, z) -> {
|
||||
final int index = count.getPlain();
|
||||
count.setPlain(index + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user