aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/handler
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2017-02-28 21:43:53 +1000
committerdraknyte1 <draknyte1@hotmail.com>2017-02-28 21:43:53 +1000
commit70eaed84ca2fe532f0417d11923096abe0ccbb69 (patch)
tree26eb1d5bf01bea9b0398f11676037da425c3e9c0 /src/Java/gtPlusPlus/core/handler
parented6f2e50902a72e55b452e0e3fb9cd72b427d157 (diff)
downloadGT5-Unofficial-70eaed84ca2fe532f0417d11923096abe0ccbb69.tar.gz
GT5-Unofficial-70eaed84ca2fe532f0417d11923096abe0ccbb69.tar.bz2
GT5-Unofficial-70eaed84ca2fe532f0417d11923096abe0ccbb69.zip
^ Version Bump.
$ Fixed GT:NH compatibility not working. % Tweaked Fluorite drop function.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler')
-rw-r--r--src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java
index 340af36ee4..ee334845cb 100644
--- a/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java
+++ b/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java
@@ -59,14 +59,14 @@ public class BlockEventHandler {
}
}*/
}
-
-
+
+
@SubscribeEvent
public void onBlockBreak(BlockEvent.BreakEvent event) {
-
+
}
-
+
ArrayList<ItemStack> oreLimestone = OreDictionary.getOres("oreLimestone");
ArrayList<ItemStack> blockLimestone = OreDictionary.getOres("limestone");
@@ -106,33 +106,33 @@ public class BlockEventHandler {
Utils.LOG_WARNING("invalid chance");
}
}
-
+
//Spawns Fluorite from Lime Stone
if (chanceToDropFluoriteOre != 0){
- if (!oreLimestone.isEmpty() || !blockLimestone.isEmpty()){
- if (!oreLimestone.isEmpty())
- for (ItemStack temp : oreLimestone){
- if (ItemUtils.getSimpleStack(Item.getItemFromBlock(event.block)) == temp) {
- if (MathUtils.randInt(1, chanceToDropFluoriteOre) == 1){
- event.drops.add(fluoriteOre.copy());
+ if (!oreLimestone.isEmpty() || !blockLimestone.isEmpty()){
+ if (!oreLimestone.isEmpty())
+ for (ItemStack temp : oreLimestone){
+ if (ItemUtils.getSimpleStack(Item.getItemFromBlock(event.block)) == temp) {
+ if (MathUtils.randInt(1, chanceToDropFluoriteOre) == 1){
+ event.drops.add(fluoriteOre.copy());
+ }
+ }
}
- }
- }
- if (!oreLimestone.isEmpty())
- for (ItemStack temp : blockLimestone){
- if (ItemUtils.getSimpleStack(Item.getItemFromBlock(event.block)) == temp) {
- if (MathUtils.randInt(1, chanceToDropFluoriteOre) == 1){
- event.drops.add(fluoriteOre.copy());
+ if (!blockLimestone.isEmpty())
+ for (ItemStack temp : blockLimestone){
+ if (ItemUtils.getSimpleStack(Item.getItemFromBlock(event.block)) == temp) {
+ if (MathUtils.randInt(1, chanceToDropFluoriteOre) == 1){
+ event.drops.add(fluoriteOre.copy());
+ }
}
}
+ }
+ if (event.block == Blocks.sandstone){
+ if (MathUtils.randInt(1, chanceToDropFluoriteOre*20) == 1){
+ event.drops.add(fluoriteOre.copy());
}
- }
- if (event.block == Blocks.sandstone){
- if (MathUtils.randInt(1, chanceToDropFluoriteOre*20) == 1){
- event.drops.add(fluoriteOre.copy());
}
}
- }
}
@SubscribeEvent