[Change] Place NBT Structures silently
This commit is contained in:
parent
c5e0029b4e
commit
0485f040b9
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
package org.betterx.bclib.api.v2.levelgen.structures;
|
package org.betterx.bclib.api.v2.levelgen.structures;
|
||||||
|
|
||||||
import org.betterx.bclib.BCLib;
|
import org.betterx.bclib.BCLib;
|
||||||
|
import org.betterx.bclib.util.BlocksHelper;
|
||||||
|
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.core.BlockPos.MutableBlockPos;
|
import net.minecraft.core.BlockPos.MutableBlockPos;
|
||||||
|
@ -12,7 +13,6 @@ import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
import net.minecraft.util.RandomSource;
|
import net.minecraft.util.RandomSource;
|
||||||
import net.minecraft.world.level.ServerLevelAccessor;
|
import net.minecraft.world.level.ServerLevelAccessor;
|
||||||
import net.minecraft.world.level.block.Block;
|
|
||||||
import net.minecraft.world.level.block.Mirror;
|
import net.minecraft.world.level.block.Mirror;
|
||||||
import net.minecraft.world.level.block.Rotation;
|
import net.minecraft.world.level.block.Rotation;
|
||||||
import net.minecraft.world.level.levelgen.structure.BoundingBox;
|
import net.minecraft.world.level.levelgen.structure.BoundingBox;
|
||||||
|
@ -65,7 +65,7 @@ public class StructureNBT {
|
||||||
newPos,
|
newPos,
|
||||||
data,
|
data,
|
||||||
world.getRandom(),
|
world.getRandom(),
|
||||||
Block.UPDATE_CLIENTS
|
BlocksHelper.SET_SILENT
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ public class StructureNBT {
|
||||||
pos,
|
pos,
|
||||||
data,
|
data,
|
||||||
world.getRandom(),
|
world.getRandom(),
|
||||||
Block.UPDATE_CLIENTS
|
BlocksHelper.SET_SILENT
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue