Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
banna12345bob committed Apr 13, 2024
1 parent e004287 commit cf7e45e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public BankingGuideItem(Properties properties) {
BlockPos clickedPos = context.getClickedPos();
Level level = context.getLevel();
BlockEntity blockEntity = level.getBlockEntity(clickedPos);
if (blockEntity == null) {
if (blockEntity != null) {
if (AllBlockEntityTypes.HEATER.is(blockEntity)) {
BlockState state = NumismaticsBlocks.BLAZE_BANKER.getDefaultState();
if (level.setBlockAndUpdate(clickedPos, state)) {
Expand Down

0 comments on commit cf7e45e

Please sign in to comment.