add MFR hammer? I think?
This commit is contained in:
parent
1c97268635
commit
05cef6e751
2 changed files with 6 additions and 8 deletions
|
@ -22,6 +22,7 @@ import net.minecraft.item.Item.ToolMaterial
|
|||
import net.minecraft.item.{EnumAction, ItemStack}
|
||||
import net.minecraft.util.{DamageSource, Vec3}
|
||||
import net.minecraft.world.World
|
||||
import powercrystals.minefactoryreloaded.api.IMFRHammer
|
||||
|
||||
/**
|
||||
* Describes the modular power tool.
|
||||
|
@ -37,6 +38,7 @@ class ItemPowerFist extends ItemElectricTool(0, ToolMaterial.EMERALD)
|
|||
with IModularItem
|
||||
with IToolGrafter
|
||||
with IToolHammer
|
||||
with IMFRHammer
|
||||
with IToolCrowbar
|
||||
with ModeChangingModularItem {
|
||||
val iconpath: String = MuseIcon.ICON_PREFIX + "handitem"
|
||||
|
@ -259,4 +261,5 @@ with ModeChangingModularItem {
|
|||
|
||||
// Railcraft Crowbar
|
||||
override def onBoost(player: EntityPlayer, itemStack: ItemStack, entityMinecart: EntityMinecart): Unit = {}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
package net.machinemuse.powersuits.powermodule.tool;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.machinemuse.api.IModularItem;
|
||||
import net.machinemuse.api.moduletrigger.IRightClickModule;
|
||||
import net.machinemuse.powersuits.common.ModCompatability;
|
||||
import net.machinemuse.powersuits.item.ItemComponent;
|
||||
import net.machinemuse.powersuits.powermodule.PowerModuleBase;
|
||||
import net.machinemuse.utils.MuseCommonStrings;
|
||||
|
@ -25,13 +23,10 @@ public class OmniWrenchModule extends PowerModuleBase implements IRightClickModu
|
|||
|
||||
public OmniWrenchModule(List<IModularItem> validItems) {
|
||||
super(validItems);
|
||||
if (ModCompatability.isOmniToolsLoaded() && GameRegistry.findItemStack("OmniTools", "OmniWrench", 1) != null) {
|
||||
addInstallCost(GameRegistry.findItemStack("OmniTools", "OmniWrench", 1));
|
||||
} else {
|
||||
|
||||
addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.controlCircuit, 1));
|
||||
addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.servoMotor, 2));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureFile() {
|
||||
|
|
Loading…
Reference in a new issue