From 564b6d968eef7a438ead80f35a3ef09deabc286a Mon Sep 17 00:00:00 2001 From: LemADEC Date: Fri, 4 Sep 2015 04:18:03 +0200 Subject: [PATCH] Fixed OC holograms detected as logs --- src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java b/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java index 72f5f1f1..dcce6400 100644 --- a/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java +++ b/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java @@ -868,14 +868,14 @@ public class WarpDriveConfig { // WarpDrive.logger.info("- added " + oreName + " to ores as " + itemStack); } } - if (lowerOreName.contains("log")) { + if (lowerOreName.startsWith("log") || lowerOreName.endsWith("log") || lowerOreName.endsWith("logs")) { ArrayList itemStacks = OreDictionary.getOres(oreName); for (ItemStack itemStack : itemStacks) { BLOCKS_LOGS.add(Block.getBlockFromItem(itemStack.getItem())); // WarpDrive.logger.info("- added " + oreName + " to logs as " + itemStack); } } - if (lowerOreName.contains("leave") || lowerOreName.contains("leaf")) { + if (lowerOreName.startsWith("leave") || lowerOreName.endsWith("leave") || lowerOreName.endsWith("leaves")) { ArrayList itemStacks = OreDictionary.getOres(oreName); for (ItemStack itemStack : itemStacks) { BLOCKS_LEAVES.add(Block.getBlockFromItem(itemStack.getItem()));