From f9cf1b39db0f846b32f78cd0c5876cb7e9d74c91 Mon Sep 17 00:00:00 2001 From: WinDanesz <31292708+WinDanesz@users.noreply.github.com> Date: Fri, 29 Mar 2024 18:07:19 +0100 Subject: [PATCH] Fix telekineticDisarmament setting and Amulet of Anchoring --- src/main/java/electroblob/wizardry/spell/Telekinesis.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/electroblob/wizardry/spell/Telekinesis.java b/src/main/java/electroblob/wizardry/spell/Telekinesis.java index 94a8b7758..ca79afdbe 100644 --- a/src/main/java/electroblob/wizardry/spell/Telekinesis.java +++ b/src/main/java/electroblob/wizardry/spell/Telekinesis.java @@ -36,8 +36,7 @@ protected boolean onEntityHit(World world, Entity target, Vec3d hit, EntityLivin target.motionZ = (origin.z - target.posZ) / 6; return true; - } else if (target instanceof EntityPlayer && (Wizardry.settings.telekineticDisarmament || !(caster instanceof EntityPlayer)) && - ItemArtefact.isArtefactActive((EntityPlayer) target, WizardryItems.amulet_anchoring)) { + } else if (target instanceof EntityPlayer && (Wizardry.settings.telekineticDisarmament && !ItemArtefact.isArtefactActive((EntityPlayer) target, WizardryItems.amulet_anchoring)) { EntityPlayer player = (EntityPlayer)target;