mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 03:25:07 +00:00
Make shrub logs flammable
This commit is contained in:
1 parent
1cbf2ad892
commit
1626b6ec03
1 file changed
+23
@@ -154,6 +154,29 @@ public class BlockShrubLog extends Block implements IWoodTyped, IStateMapperRegi
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getFireSpreadSpeed(IBlockAccess world, BlockPos pos, EnumFacing face) {
|
||||
IBlockState state = world.getBlockState(pos);
|
||||
if (state.getValue(FIREPROOF)) {
|
||||
return 0;
|
||||
} else if (face == EnumFacing.DOWN) {
|
||||
return 20;
|
||||
} else if (face != EnumFacing.UP) {
|
||||
return 10;
|
||||
} else {
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getFlammability(IBlockAccess world, BlockPos pos, EnumFacing face) {
|
||||
IBlockState state = world.getBlockState(pos);
|
||||
if (state.getValue(FIREPROOF)) {
|
||||
return 0;
|
||||
}
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos,
|
||||
|
||||
Reference in new issue
Block a user