mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-08 03:40:27 +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);
|
cache[index] = getPaletteIndex(newValue);
|
||||||
});
|
});
|
||||||
// Set values to final array
|
// Set values to final array
|
||||||
count.set(0);
|
count.setPlain(0);
|
||||||
setAll((x, y, z) -> {
|
setAll((x, y, z) -> {
|
||||||
final int index = count.getPlain();
|
final int index = count.getPlain();
|
||||||
count.setPlain(index + 1);
|
count.setPlain(index + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user