Roll a placement back to what was there rather than to air

This commit is contained in:
ABKQPO committed 2026-09-11 10:13:09 +08:00
1 parent 6209d67ba7
commit 6bc8cea2bf
3 files changed
+36 -8

No files matched your search

@@ -319,8 +319,7 @@ public class FluidAutoplace {
}
private static void restore(World world, int x, int y, int z, Block block, int meta) {
if (block == null || block.isAir(world, x, y, z)) world.setBlockToAir(x, y, z);
else world.setBlock(x, y, z, block, meta, 3);
StructureLibAPI.restoreBlock(world, x, y, z, block, meta);
}
private static void reportMissingFluid(AutoPlaceEnvironment env, FluidBlockRequirement requirement, int missing) {