Correct grass burning values
This commit is contained in:
parent
a4e7e0fdd9
commit
f759408d38
1 changed files with 4 additions and 11 deletions
|
@ -164,20 +164,13 @@ 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
|
||||
|
|
Loading…
Reference in a new issue