Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
fix: normalize layer when setting ordinal to ThreadUnsafeCharBlocks (#2764)
- fixes #2763
Dieser Commit ist enthalten in:
Ursprung
5714a52675
Commit
c095c492e0
@ -222,7 +222,7 @@ public class ThreadUnsafeCharBlocks implements IChunkSet, IBlocks {
|
||||
}
|
||||
|
||||
public void set(int x, int y, int z, char value) {
|
||||
final int layer = y >> 4;
|
||||
final int layer = (y >> 4) - minSectionPosition;
|
||||
final int index = (y & 15) << 8 | z << 4 | x;
|
||||
try {
|
||||
blocks[layer][index] = value;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren