From 69d79741607d201acb84e384e487085f80ea676f Mon Sep 17 00:00:00 2001 From: Sobki Date: Wed, 7 Sep 2016 03:56:12 +1000 Subject: [PATCH] Fixed WaterReturn permission & MetalClips duplication (#573) --- .../projectkorra/projectkorra/earthbending/MetalClips.java | 4 +--- src/plugin.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/projectkorra/projectkorra/earthbending/MetalClips.java b/src/com/projectkorra/projectkorra/earthbending/MetalClips.java index 7af11be4..f852fa2a 100644 --- a/src/com/projectkorra/projectkorra/earthbending/MetalClips.java +++ b/src/com/projectkorra/projectkorra/earthbending/MetalClips.java @@ -428,9 +428,7 @@ public class MetalClips extends MetalAbility { formArmor(); } else { TARGET_TO_ABILITY.get(targetEntity).remove(); - targetEntity = (LivingEntity) e; - TARGET_TO_ABILITY.put(targetEntity, this); - formArmor(); + player.getWorld().dropItemNaturally(e.getLocation(), new ItemStack(Material.IRON_INGOT, 1)); } } else { DamageHandler.damageEntity(e, player, damage, this); diff --git a/src/plugin.yml b/src/plugin.yml index c3016e2c..28055fc9 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -113,6 +113,7 @@ permissions: bending.ability.WaterArms.Grab: true bending.ability.WaterArms.Freeze: true bending.ability.WaterArms.Spear: true + bending.ability.WaterReturn: true bending.earth: default: true description: Grants access to all Earthbending abilities.