This commit is contained in:
Daniel Mills 2021-07-27 18:53:50 -04:00
parent fc678684f5
commit 16fa453163

View File

@ -480,10 +480,13 @@ public class IrisPostModifier extends EngineAssignedModifier<BlockData> {
public void setPostBlock(int x, int y, int z, BlockData d, int currentPostX, int currentPostZ, Hunk<BlockData> currentData) { public void setPostBlock(int x, int y, int z, BlockData d, int currentPostX, int currentPostZ, Hunk<BlockData> currentData) {
synchronized (currentData)
{
if (y < currentData.getHeight()) { if (y < currentData.getHeight()) {
currentData.set(x & 15, y, z & 15, d); currentData.set(x & 15, y, z & 15, d);
} }
} }
}
public BlockData getPostBlock(int x, int y, int z, int cpx, int cpz, Hunk<BlockData> h) { public BlockData getPostBlock(int x, int y, int z, int cpx, int cpz, Hunk<BlockData> h) {
BlockData b = h.getClosest(x & 15, y, z & 15); BlockData b = h.getClosest(x & 15, y, z & 15);