Skip to content

Commit

Permalink
allomancy iron pulling. still janky
Browse files Browse the repository at this point in the history
  • Loading branch information
leafreynolds committed May 31, 2021
1 parent cce9d2e commit 44fef54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ private void performEffectServer(ISpiritweb cap)
for (BlockPos blockPos : blocks)
{
//if the entity is in range of being able to push
if (blockPos.withinDistance(living.getPositionVec(), (strength * data.getMode(Manifestations.ManifestationTypes.ALLOMANCY, getMetalType().getID())) * 0.1f))
double distance = (strength * data.getMode(Manifestations.ManifestationTypes.ALLOMANCY, getMetalType().getID()));// * 0.1f;
if (blockPos.withinDistance(living.getPositionVec(), distance))
{
direction = VectorHelper.getDirection(
new Vector3d(blockPos.getX(), blockPos.getY(), blockPos.getZ()),
Expand Down

0 comments on commit 44fef54

Please sign in to comment.