From d61f8ed6f193ec32a9914ce76cd8ac903fe57476 Mon Sep 17 00:00:00 2001 From: Blood-Asp Date: Tue, 12 Sep 2017 21:33:06 +0200 Subject: [PATCH] Fix #1201 --- src/main/java/gregtech/common/tools/GT_Tool_Scoop.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java b/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java index 142d3d73..ef8244f3 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java @@ -1,9 +1,12 @@ package gregtech.common.tools; +import cpw.mods.fml.common.Loader; import gregtech.api.GregTech_API; +import gregtech.api.enums.GT_Values; import gregtech.api.enums.Textures; import gregtech.api.interfaces.IIconContainer; import gregtech.api.items.GT_MetaGenerated_Tool; +import gregtech.common.items.behaviors.Behaviour_None; import gregtech.common.items.behaviors.Behaviour_Scoop; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -91,7 +94,12 @@ public class GT_Tool_Scoop } public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) { - aItem.addItemBehavior(aID, new Behaviour_Scoop(200)); + if(Loader.isModLoaded(GT_Values.MOD_ID_FR)){ + aItem.addItemBehavior(aID, new Behaviour_Scoop(200)); + }else{ + aItem.addItemBehavior(aID, new Behaviour_None()); + } + } public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) {