maybe correct #1137
This commit is contained in:
parent
a7c5d30146
commit
d58cece573
1 changed files with 2 additions and 9 deletions
|
@ -3,9 +3,8 @@ package gregtech.common.tools;
|
||||||
import gregtech.api.GregTech_API;
|
import gregtech.api.GregTech_API;
|
||||||
import gregtech.api.enums.Textures;
|
import gregtech.api.enums.Textures;
|
||||||
import gregtech.api.interfaces.IIconContainer;
|
import gregtech.api.interfaces.IIconContainer;
|
||||||
import gregtech.api.interfaces.IItemBehaviour;
|
|
||||||
import gregtech.api.items.GT_MetaGenerated_Tool;
|
import gregtech.api.items.GT_MetaGenerated_Tool;
|
||||||
import gregtech.api.util.GT_Utility;
|
import gregtech.common.items.behaviors.Behaviour_Scoop;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
@ -92,13 +91,7 @@ public class GT_Tool_Scoop
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {
|
public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {
|
||||||
try {
|
aItem.addItemBehavior(aID, new Behaviour_Scoop(200));
|
||||||
Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Scoop", 0, null, false, new Object[]{Integer.valueOf(200)});
|
|
||||||
if ((tObject instanceof IItemBehaviour)) {
|
|
||||||
aItem.addItemBehavior(aID, (IItemBehaviour) tObject);
|
|
||||||
}
|
|
||||||
} catch (Throwable e) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) {
|
public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) {
|
||||||
|
|
Loading…
Reference in a new issue