aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/handler
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-05-27 16:16:10 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-05-27 16:16:10 +1000
commit4cbc4b40b3e1d5197b6e390311472fffcf4bec21 (patch)
treec84f47cf4a7a6a82dbb92c02123cc7b18c14f19d /src/Java/gtPlusPlus/core/handler
parent79f37cfd42c53af7969fba388b711955e389b76d (diff)
downloadGT5-Unofficial-4cbc4b40b3e1d5197b6e390311472fffcf4bec21.tar.gz
GT5-Unofficial-4cbc4b40b3e1d5197b6e390311472fffcf4bec21.tar.bz2
GT5-Unofficial-4cbc4b40b3e1d5197b6e390311472fffcf4bec21.zip
$ Hopefully fixed issue where BoP limestone is valid for Fluorite.
$ Fixed the ABS not using the correct texture on the top layer input hatch. % More internal work on LFTR rewrite.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler')
-rw-r--r--src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java
index f3b40a7214..aac26418b0 100644
--- a/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java
+++ b/src/Java/gtPlusPlus/core/handler/events/BlockEventHandler.java
@@ -15,6 +15,7 @@ import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.item.ModItems;
import gtPlusPlus.core.lib.LoadedMods;
import gtPlusPlus.core.util.math.MathUtils;
+import gtPlusPlus.core.util.minecraft.ItemUtils;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.event.world.BlockEvent;
@@ -114,13 +115,17 @@ public class BlockEventHandler {
ArrayList<Block> mBlockTypes = new ArrayList<Block>();
if (!oreLimestone.isEmpty()){
for (int i=0;i<oreLimestone.size();i++){
- mBlockTypes.add(Block.getBlockFromItem(oreLimestone.get(i).getItem()));
+ if (!ItemUtils.getModId(oreLimestone.get(i)).toLowerCase().contains("biomesoplenty")) {
+ mBlockTypes.add(Block.getBlockFromItem(oreLimestone.get(i).getItem()));
+ }
}
}
if (!blockLimestone.isEmpty()){
for (int i=0;i<blockLimestone.size();i++){
- if (!mBlockTypes.contains(Block.getBlockFromItem(blockLimestone.get(i).getItem()))){
- mBlockTypes.add(Block.getBlockFromItem(blockLimestone.get(i).getItem()));
+ if (!ItemUtils.getModId(oreLimestone.get(i)).toLowerCase().contains("biomesoplenty")) {
+ if (!mBlockTypes.contains(Block.getBlockFromItem(blockLimestone.get(i).getItem()))){
+ mBlockTypes.add(Block.getBlockFromItem(blockLimestone.get(i).getItem()));
+ }
}
}
}