Skip to content

Commit

Permalink
minor fix to fire fix
Browse files Browse the repository at this point in the history
  • Loading branch information
supermassimo committed Sep 8, 2024
1 parent 2992aa6 commit f7006f7
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,14 @@ public void onRemove(BlockState state, Level level, BlockPos pos, BlockState new
return;
}

boolean foundFire = false;
for (Direction offset : Direction.values()){
BlockPos offPos = pos.offset(offset.getNormal());
if (level.getBlockState(offPos).is(BlockTags.FIRE)){
foundFire = true;
break;
boolean foundFire = toBlockState.is(BlockTags.FIRE);
if (!foundFire){
for (Direction offset : Direction.values()){
BlockPos offPos = pos.offset(offset.getNormal());
if (level.getBlockState(offPos).is(BlockTags.FIRE)){
foundFire = true;
break;
}
}
}

Expand Down

0 comments on commit f7006f7

Please sign in to comment.