mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Fix Material#isFlammable not being accounted for in flammability (#10573)
This commit is contained in:
1 parent
e5ad486994
commit
e70dc0a4b7
1 file changed
+1
-1
@@ -550,7 +550,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default boolean isFlammable(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
|
||||
{
|
||||
return state.getFlammability(level, pos, direction) > 0;
|
||||
return state.getMaterial().isFlammable() && state.getFlammability(level, pos, direction) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user