Fix ignitedByLava making blocks permanently flammable (#10570)

This commit is contained in:
Jonathing authored and GitHub committed 2025-07-16 09:18:45 -07:00
1 parent d1071fd0f8
commit 6c4f5e2865
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.m_123342_() >= level.m_141937_() && pos.m_123342_() < level.m_151558_() && !level.m_46805_(pos) ? false : level.m_8055_(pos).isFlammable(level, pos, face);
+ return pos.m_123342_() >= level.m_141937_() && pos.m_123342_() < level.m_151558_() && !level.m_46805_(pos) ? false : level.m_8055_(pos).m_278200_() && level.m_8055_(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;
}
/**