diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-07-28 08:48:28 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-07-28 08:48:28 +1000 |
commit | e5c191c5467ca565453e1730ef930f73fd67c353 (patch) | |
tree | 89f13e66551976a115b62235a85198e1068fffe2 /src/Java/gtPlusPlus/core | |
parent | cd5c36938f322adf02345eaae6a1d03a9614cf7c (diff) | |
download | GT5-Unofficial-e5c191c5467ca565453e1730ef930f73fd67c353.tar.gz GT5-Unofficial-e5c191c5467ca565453e1730ef930f73fd67c353.tar.bz2 GT5-Unofficial-e5c191c5467ca565453e1730ef930f73fd67c353.zip |
$ Fixed an error loading the Accelerator Blacklist.
$ Hopefully fixed Limestone not dropping fluorite as often as it should.
Diffstat (limited to 'src/Java/gtPlusPlus/core')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java index 25ec4d98c7..58b5d6e7cc 100644 --- a/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java +++ b/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java @@ -78,7 +78,7 @@ public class BlockEventHandler { //Spawn Dull Shards (Can spawn from Tree Logs, Grass or Stone. Stone going to be the most common source.) if (((event.block == Blocks.stone) || (event.block == Blocks.sandstone) || (event.block == Blocks.log) || (event.block == Blocks.log2) || (event.block == Blocks.grass)) && !LoadedMods.Thaumcraft && (chanceToDropDrainedShard != 0)) { - //small chance for one to spawn per stone mined. 1 per 3 stacks~ //TODO MAKE A CONFIG OPTION + //small chance for one to spawn per stone mined. 1 per 3 stacks~ if (MathUtils.randInt(1, chanceToDropDrainedShard) == 1){ //Let's sort out a lucky charm for the player. final int FancyChance = MathUtils.randInt(1, 4); @@ -129,6 +129,13 @@ public class BlockEventHandler { } } } + else { + if (event.block.getUnlocalizedName().toLowerCase().contains("limestone")){ + if (MathUtils.randInt(1, chanceToDropFluoriteOre) == 1){ + event.drops.add(this.fluoriteOre.copy()); + } + } + } if (event.block == Blocks.sandstone){ if (MathUtils.randInt(1, chanceToDropFluoriteOre*20) == 1){ event.drops.add(this.fluoriteOre.copy()); |