diff --git a/changelog.txt b/changelog.txt index abcfa115..db348e46 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java b/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java index 81fd6fb5..18511c25 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java @@ -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 diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java b/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java index f908aff0..9d176ee1 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java @@ -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 + ".";