Fixed a crash bug with sapling drops

This commit is contained in:
Adubbz 2016-01-06 01:49:13 +11:00
parent 5090c759bc
commit 840e9631d5
3 changed files with 5 additions and 3 deletions

View file

@ -35,7 +35,7 @@ archivesBaseName = "BiomesOPlenty"
minecraft { minecraft {
version = config.minecraft_version + "-" + config.forge_version // grab latest forge version = config.minecraft_version + "-" + config.forge_version // grab latest forge
useDepAts = true useDepAts = true
mappings = "snapshot_nodoc_20151214" mappings = project.config.mappings_version
} }
// add some stuff to the version // add some stuff to the version

View file

@ -1,3 +1,4 @@
minecraft_version=1.8.9 minecraft_version=1.8.9
forge_version=11.15.0.1669 forge_version=11.15.0.1684
mod_version=3.0.0 mod_version=3.0.0
mappings_version=snapshot_nodoc_20160104

View file

@ -133,7 +133,8 @@ public class BlockBOPSapling extends BlockBOPDecoration implements IGrowable {
@Override @Override
public int damageDropped(IBlockState state) public int damageDropped(IBlockState state)
{ {
return this.getMetaFromState(state); //We don't want item drops to have metadata for the stage
return this.getMetaFromState(state) & 7;
} }
@Override @Override