Fix slab cmod op

This commit is contained in:
Daniel Mills 2021-07-14 13:24:20 -04:00
parent 1c7b318c3f
commit bdfe14e278

View File

@ -322,9 +322,31 @@ public class IrisPostModifier extends EngineAssignedModifier<BlockData> {
} }
if (!cancel && isAirOrWater(x, c, z, currentPostX, currentPostZ, currentData)) { if (!cancel && isAirOrWater(x, c, z, currentPostX, currentPostZ, currentData)) {
Slab slab = (Slab) d.clone(); try
slab.setType(Slab.Type.TOP); {
setPostBlock(x, c, z, slab, currentPostX, currentPostZ, currentData); Slab slab = (Slab) d.clone();
slab.setType(Slab.Type.TOP);
setPostBlock(x, c, z, slab, currentPostX, currentPostZ, currentData);
}
catch(Throwable ignored)
{
try
{
Slab slab = (Slab) d.clone();
synchronized (slab)
{
slab.setType(Slab.Type.TOP);
setPostBlock(x, c, z, slab, currentPostX, currentPostZ, currentData);
}
}
catch(Throwable ignored2)
{
}
}
} }
} }
} }