Correct grass burning values

This commit is contained in:
Cheeserolls 2015-03-27 09:56:20 +00:00
parent a4e7e0fdd9
commit f759408d38
1 changed files with 4 additions and 11 deletions

View File

@ -163,21 +163,14 @@ public class BlockBOPGrass extends BOPBlock implements IGrowable
{
IBlockState state = world.getBlockState(pos);
switch ((BOPGrassType) state.getValue(VARIANT_PROP))
{
// spectral moss burns from below in the end
// TODO: 1.7 code had dimension=-1 here - check -1 corresponds to end
case SPECTRALMOSS:
if ((world.provider instanceof net.minecraft.world.WorldProviderEnd) && side == EnumFacing.UP) {return true;}
break;
// smoldering grass always burns
{
// smoldering grass is a fire source
case SMOLDERING:
return false;
return true;
default:
break;
return false;
}
return super.isFireSource(world, pos, side);
}
@Override