From c3c158207dd76dcbe806f07ce0f64f739623696f Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 13 Jun 2021 20:46:51 +0100 Subject: [PATCH] Fixed tabs instead of spaces after PR --- .../ecoenchants/normal/Parasitic.java | 6 ++--- .../ecoenchants/special/Soulbound.java | 26 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Parasitic.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Parasitic.java index 37381a99..082ab354 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Parasitic.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Parasitic.java @@ -28,8 +28,8 @@ public class Parasitic extends EcoEnchant { if (newHealth > attacker.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()) { newHealth = attacker.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue(); } - if (attacker.getHealth() > 0) { - attacker.setHealth(newHealth); - } + if (attacker.getHealth() > 0) { + attacker.setHealth(newHealth); + } } } diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Soulbound.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Soulbound.java index 76d7b57f..a7abe665 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Soulbound.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Soulbound.java @@ -43,19 +43,19 @@ public class Soulbound extends EcoEnchant { return; } - if (!(event.getEntity() instanceof Arrow)) { - if (player.getKiller() != null) { - Player killer = player.getKiller(); - int reaperLevel = EnchantChecks.getMainhandLevel(killer, EcoEnchants.REAPER); - if (reaperLevel > 0) { - if (!(EcoEnchants.REAPER.getDisabledWorlds().contains(killer.getWorld()))) { - if (EnchantmentUtils.passedChance(EcoEnchants.REAPER, reaperLevel)) { - return; - } - } - } - } - } + if (!(event.getEntity() instanceof Arrow)) { + if (player.getKiller() != null) { + Player killer = player.getKiller(); + int reaperLevel = EnchantChecks.getMainhandLevel(killer, EcoEnchants.REAPER); + if (reaperLevel > 0) { + if (!(EcoEnchants.REAPER.getDisabledWorlds().contains(killer.getWorld()))) { + if (EnchantmentUtils.passedChance(EcoEnchants.REAPER, reaperLevel)) { + return; + } + } + } + } + } for (ItemStack itemStack : player.getInventory().getContents()) { if (itemStack == null) { continue;