Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Furgl committed Sep 2, 2017
1 parent b8c7f94 commit 1daeac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1daeac9

Please sign in to comment.