Skip to content

Commit 904f1d2

Browse files
committed
Fix being unable to place blocks that have bounding blocks (#8052)
1 parent 7cbb5f7 commit 904f1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/mekanism/common/item/block/ItemBlockTooltip.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public boolean placeBlock(@NotNull BlockPlaceContext context, @NotNull BlockStat
8383
if (hasBounding == null) {
8484
return super.placeBlock(context, state);
8585
}
86-
AtomicBoolean isValid = new AtomicBoolean();
86+
AtomicBoolean isValid = new AtomicBoolean(true);
8787
hasBounding.handle(context.getLevel(), context.getClickedPos(), state, context, (level, pos, ctx) -> {
8888
if (isValid.get() && !WorldUtils.isValidReplaceableBlock(level, ctx, pos)) {
8989
isValid.set(false);

0 commit comments

Comments
 (0)