Skip to content

Commit

Permalink
Fix the lighter behaviour (GregTechCEu#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCTian-mi authored Jul 7, 2024
1 parent 52c835c commit ae88e46
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ public EnumActionResult onItemUseFirst(@NotNull EntityPlayer player, @NotNull Wo
}

BlockPos offset = pos.offset(side);
world.setBlockState(offset, Blocks.FIRE.getDefaultState(), 11);
if (!world.isRemote) {
CriteriaTriggers.PLACED_BLOCK.trigger((EntityPlayerMP) player, offset, stack);
if (world.isAirBlock(offset)) {
world.setBlockState(offset, Blocks.FIRE.getDefaultState(), 11);
if (!world.isRemote) {
CriteriaTriggers.PLACED_BLOCK.trigger((EntityPlayerMP) player, offset, stack);
}
}
return EnumActionResult.SUCCESS;
}
Expand Down

0 comments on commit ae88e46

Please sign in to comment.