Skip to content

Commit

Permalink
Removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xsmeths committed May 15, 2021
1 parent 0b89078 commit 92f6ba1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,20 @@ public void offhandbandage(PlayerInteractEntityEvent e) {
if (oi.getType() == item.getItem().getType()
&& oi.getItemMeta() != null && oi.getItemMeta().hasCustomModelData() && oi.getType() == item.getItem().getType()
&& oi.getItemMeta().getCustomModelData() == item.getItem().getItemMeta().getCustomModelData()
&& !recipient.hasPotionEffect(PotionEffectType.REGENERATION)
&& !recipient.hasPotionEffect(PotionEffectType.REGENERATION) && !item.HasRange()
&& recipient.getHealth() < Objects.requireNonNull(recipient.getAttribute(Attribute.GENERIC_MAX_HEALTH)).getValue()
&& !isBandaging(recipient) && i.getItemMeta() != null && i.getItemMeta().hasCustomModelData()
&& i.getItemMeta().getCustomModelData() != item.getItem().getItemMeta().getCustomModelData()
|| oi.getItemMeta() != null && oi.getItemMeta().hasCustomModelData() && oi.getType() == item.getItem().getType()
&& oi.getItemMeta().getCustomModelData() == item.getItem().getItemMeta().getCustomModelData()
&& !recipient.hasPotionEffect(PotionEffectType.REGENERATION)
&& !recipient.hasPotionEffect(PotionEffectType.REGENERATION) && !item.HasRange()
&& recipient.getHealth() < Objects.requireNonNull(recipient.getAttribute(Attribute.GENERIC_MAX_HEALTH)).getValue()
&& isBandaging(recipient) && i.getType() == Material.AIR
|| oi.getItemMeta() != null && oi.getItemMeta().hasCustomModelData() && oi.getType() == item.getItem().getType()
&& oi.getItemMeta().getCustomModelData() == item.getItem().getItemMeta().getCustomModelData()
&& !recipient.hasPotionEffect(PotionEffectType.REGENERATION)
&& !recipient.hasPotionEffect(PotionEffectType.REGENERATION) && !item.HasRange()
&& recipient.getHealth() < Objects.requireNonNull(recipient.getAttribute(Attribute.GENERIC_MAX_HEALTH)).getValue()
&& isBandaging(recipient)) {
p.sendMessage("if passed");
if (oi.getAmount() == 1 && p.hasPermission("bandage.use.offhand")) {
p.getInventory().setItemInOffHand(new ItemStack(Material.AIR));
p.updateInventory();
Expand Down

0 comments on commit 92f6ba1

Please sign in to comment.