Skip to content

Commit

Permalink
Fix telekineticDisarmament setting and Amulet of Anchoring
Browse files Browse the repository at this point in the history
  • Loading branch information
WinDanesz authored Mar 29, 2024
1 parent 3fb3c1c commit f9cf1b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/electroblob/wizardry/spell/Telekinesis.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f9cf1b3

Please sign in to comment.