mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-20 20:12:09 +00:00
Roll a placement back to what was there rather than to air
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user