Made it so that the bound tools are (supposedly more so) unbreakable. Fixes #793

This commit is contained in:
WayofTime 2016-06-17 10:15:46 -04:00
parent 145d7a5bc2
commit 4b221c2e5c
3 changed files with 5 additions and 5 deletions

View file

@ -4,6 +4,7 @@ Version 2.0.2-45
- Changed the recipe of the Sanguine Scientiem
- Fixed the Routing system so that it properly eliminates the connection to the Master node when the Master node is broken.
- Fixed an issue where the Spectral Blocks (from the Sigil of Suppression) would return the liquid on the client side before the sigil was deactivated.
- Made it so that the bound tools are (supposedly more so) unbreakable. This will probably come bite me on the ehem later, but we'll see.
------------------------------------------------------
Version 2.0.2-44

View file

@ -3,6 +3,8 @@ package WayofTime.bloodmagic.item;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.entity.EntityLivingBase;
@ -13,17 +15,14 @@ import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import WayofTime.bloodmagic.BloodMagic;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.event.BoundToolEvent;
import WayofTime.bloodmagic.api.iface.IActivatable;
import WayofTime.bloodmagic.api.iface.IBindable;
import WayofTime.bloodmagic.api.util.helper.NBTHelper;
@ -37,8 +36,6 @@ import com.google.common.base.Strings;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
import javax.annotation.Nullable;
public class ItemBoundSword extends ItemSword implements IBindable, IActivatable, IMeshProvider
{
public ItemBoundSword()
@ -47,6 +44,7 @@ public class ItemBoundSword extends ItemSword implements IBindable, IActivatable
setUnlocalizedName(Constants.Mod.MODID + ".bound.sword");
setCreativeTab(BloodMagic.tabBloodMagic);
setMaxDamage(0);
}
@Override

View file

@ -58,6 +58,7 @@ public class ItemBoundTool extends ItemTool implements IBindable, IActivatable
super(damage, 1, ModItems.boundToolMaterial, effectiveBlocks);
setUnlocalizedName(Constants.Mod.MODID + ".bound." + name);
setCreativeTab(BloodMagic.tabBloodMagic);
setMaxDamage(0);
this.name = name;
this.tooltipBase = "tooltip.BloodMagic.bound." + name + ".";