mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
azure latch time
This commit is contained in:
parent
84f1434131
commit
938f99318f
@ -473,6 +473,10 @@ public class NBTStructure {
|
|||||||
Block block = transformBlock(state.definition, null, world.rand);
|
Block block = transformBlock(state.definition, null, world.rand);
|
||||||
int meta = transformMeta(state.definition, null, coordBaseMode);
|
int meta = transformMeta(state.definition, null, coordBaseMode);
|
||||||
|
|
||||||
|
if(ry < 0 || ry >= world.getHeight()) continue;
|
||||||
|
Block existing = world.getBlock(rx, ry, rz);
|
||||||
|
if(existing == Blocks.bedrock) continue;
|
||||||
|
|
||||||
world.setBlock(rx, ry, rz, block, meta, 2);
|
world.setBlock(rx, ry, rz, block, meta, 2);
|
||||||
|
|
||||||
if(state.nbt != null) {
|
if(state.nbt != null) {
|
||||||
@ -546,6 +550,10 @@ public class NBTStructure {
|
|||||||
Block block = transformBlock(state.definition, piece.blockTable, world.rand);
|
Block block = transformBlock(state.definition, piece.blockTable, world.rand);
|
||||||
int meta = transformMeta(state.definition, piece.blockTable, coordBaseMode);
|
int meta = transformMeta(state.definition, piece.blockTable, coordBaseMode);
|
||||||
|
|
||||||
|
if(ry < 0 || ry >= world.getHeight()) continue;
|
||||||
|
Block existing = world.getBlock(rx, ry, rz);
|
||||||
|
if(existing == Blocks.bedrock) continue;
|
||||||
|
|
||||||
world.setBlock(rx, ry, rz, block, meta, 2);
|
world.setBlock(rx, ry, rz, block, meta, 2);
|
||||||
|
|
||||||
if(state.nbt != null) {
|
if(state.nbt != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user