diff options
| author | Alkalus <Draknyte1@hotmail.com> | 2020-03-31 16:35:15 +0100 |
|---|---|---|
| committer | Alkalus <Draknyte1@hotmail.com> | 2020-03-31 16:35:15 +0100 |
| commit | 2c4a94b808c61d66163d9969017c2819ddb2c5ae (patch) | |
| tree | 3af0f3ca11bb52b3183ef100e4dc6892a76f83e7 /src/Java/gtPlusPlus/xmod/bop/blocks/base | |
| parent | 09b08b073aea41bfbdf189c88cc722912952ea6d (diff) | |
| download | GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.tar.gz GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.tar.bz2 GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.zip | |
+ Added a Pine Tree.
+ Oredict BoP Pinecone if it exists.
$ Fixed Algae Farm controller recipe.
$ Fixed bug where getOrePrefixStack(rod) would return null.
$ Fixed a bug where getItemStackFromFQRN didn't work correctly.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/bop/blocks/base')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java b/src/Java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java index 264aaa2a20..5c86c45591 100644 --- a/src/Java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java +++ b/src/Java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java @@ -55,16 +55,12 @@ public class LeavesBase extends BlockLeaves { @Override//Drops when Leaf is broken protected void func_150124_c(World world, int x, int y, int z, int meta, int randomChance){ - if (this.treeType.length == this.bonusDrops.length){ - for (int i = 0; i < this.treeType.length; ++i){ - if (this.bonusDrops[i] != null && world.rand.nextInt(randomChance) == 0){ - this.dropBlockAsItem(world, x, y, z, ItemUtils.getSimpleStack(this.bonusDrops[i], 1)); - } + Logger.INFO("Dropping Bonus Drops"); + for (int i = 0; i < this.bonusDrops.length; ++i){ + if (this.bonusDrops[i] != null && world.rand.nextInt(randomChance) == 0){ + this.dropBlockAsItem(world, x, y, z, ItemUtils.getSimpleStack(this.bonusDrops[i], 1)); } } - else { - Logger.WARNING("Unable to drop anything, Leaf Type array and Loot array are different sizes."); - } } /** |
