Skip to content

Commit

Permalink
Fix fire placement by blocks when fire-spread is set to deny
Browse files Browse the repository at this point in the history
Fixes #2070
  • Loading branch information
aurorasmiles authored and Joo200 committed May 13, 2024
1 parent 2f93b26 commit 65431c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void onPlaceBlock(final PlaceBlockEvent event) {
/* Flint and steel, fire charge, etc. */
if (Materials.isFire(type)) {
Block block = event.getCause().getFirstBlock();
boolean fire = block != null && Materials.isFire(type);
boolean fire = block != null && Materials.isFire(block.getType());
boolean lava = block != null && Materials.isLava(block.getType());
List<StateFlag> flags = new ArrayList<>();
flags.add(Flags.BLOCK_PLACE);
Expand Down

0 comments on commit 65431c7

Please sign in to comment.