Fix #1201
This commit is contained in:
parent
419ce5496a
commit
d61f8ed6f1
1 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue