From 1daeac9a59ef82e8bb19921f46fc0c3059be18bc Mon Sep 17 00:00:00 2001 From: Furgl Date: Fri, 1 Sep 2017 21:58:30 -0500 Subject: [PATCH] - --- .../twopiradians/minewatch/common/item/armor/ItemMWArmor.java | 2 +- .../minewatch/common/item/weapon/ItemMWWeapon.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/twopiradians/minewatch/common/item/armor/ItemMWArmor.java b/src/main/java/twopiradians/minewatch/common/item/armor/ItemMWArmor.java index 4304ffea..129c5364 100644 --- a/src/main/java/twopiradians/minewatch/common/item/armor/ItemMWArmor.java +++ b/src/main/java/twopiradians/minewatch/common/item/armor/ItemMWArmor.java @@ -194,7 +194,7 @@ public void onArmorTick(World world, EntityPlayer player, ItemStack stack) { } // set damage to full if wearing full set and option set to not use durability while wearing full set - if (Config.durabilityOptionArmors == 1 && stack.getItemDamage() != 0 && + if (!world.isRemote && Config.durabilityOptionArmors == 1 && stack.getItemDamage() != 0 && SetManager.playersWearingSets.get(player.getPersistentID()) == hero) stack.setItemDamage(0); } diff --git a/src/main/java/twopiradians/minewatch/common/item/weapon/ItemMWWeapon.java b/src/main/java/twopiradians/minewatch/common/item/weapon/ItemMWWeapon.java index b1e988a1..ccb66a13 100644 --- a/src/main/java/twopiradians/minewatch/common/item/weapon/ItemMWWeapon.java +++ b/src/main/java/twopiradians/minewatch/common/item/weapon/ItemMWWeapon.java @@ -189,10 +189,10 @@ else if (this.getCurrentAmmo((EntityPlayer) entity) > 0 && Minewatch.keys.reload ability.toggled.put(entity.getPersistentID(), false); // set damage to full if option set to never use durability - if (Config.durabilityOptionWeapons == 2 && stack.getItemDamage() != 0) + if (!world.isRemote && Config.durabilityOptionWeapons == 2 && stack.getItemDamage() != 0) stack.setItemDamage(0); // set damage to full if wearing full set and option set to not use durability while wearing full set - else if (Config.durabilityOptionWeapons == 1 && stack.getItemDamage() != 0 && + else if (!world.isRemote && Config.durabilityOptionWeapons == 1 && stack.getItemDamage() != 0 && SetManager.playersWearingSets.get(entity.getPersistentID()) == hero) stack.setItemDamage(0); }