Skip to content

Commit

Permalink
don't place blocks when using the furnace
Browse files Browse the repository at this point in the history
  • Loading branch information
jiink committed Apr 17, 2024
1 parent a1e85ec commit 3b83450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jiink/smeltinginapinch/WoodenFurnaceBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEnt
NamedScreenHandlerFactory screenHandlerFactory = (WoodenFurnaceBlockEntity)world.getBlockEntity(pos);
if (screenHandlerFactory != null) {
player.openHandledScreen(screenHandlerFactory);
return ActionResult.SUCCESS;
}
}
return ActionResult.PASS;
return ActionResult.SUCCESS;
}

@Environment(EnvType.CLIENT)
Expand Down

0 comments on commit 3b83450

Please sign in to comment.