Fix ignitedByLava making blocks permanently flammable (#9735) Fixes #9730

This commit is contained in:
Jonathan Colmenares authored and GitHub committed 2023-09-27 23:11:48 -07:00
1 parent 05c88ae33a
commit d25ba7adc8
2 files changed
+2 -2

No files matched your search

@@ -40,7 +40,7 @@
}
+ private boolean isFlammable(LevelReader level, BlockPos pos, Direction face) {
+ return pos.getY() >= level.getMinBuildHeight() && pos.getY() < level.getMaxBuildHeight() && !level.hasChunkAt(pos) ? false : level.getBlockState(pos).isFlammable(level, pos, face);
+ return pos.getY() >= level.getMinBuildHeight() && pos.getY() < level.getMaxBuildHeight() && !level.hasChunkAt(pos) ? false : level.getBlockState(pos).ignitedByLava() && level.getBlockState(pos).isFlammable(level, pos, face);
+ }
+
@Nullable
@@ -628,7 +628,7 @@ public interface IForgeBlock
*/
default boolean isFlammable(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
{
return state.ignitedByLava() || state.getFlammability(level, pos, direction) > 0;
return state.getFlammability(level, pos, direction) > 0;
}
/**