Skip to content

Commit

Permalink
Removed unnecessary method from both MixinTurtleMoveCommand mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
TechTastic committed Dec 29, 2024
1 parent afa7652 commit 469cfd0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,4 @@ public abstract class MixinTurtleMoveCommand {
}
}
}

//CUSTOM METHODS

@Unique
private static Vector3d getShipPosFromWorldPos(final Level world, final BlockPos position) {
final Iterable<Vector3d> detectedShips =
ValkyrienSkies.positionToNearbyShipsAndWorld(world, position.getX() + 0.5, position.getY() + 0.5,
position.getZ() + 0.5, 0.1);
for (final Vector3d vec : detectedShips) {
if (vec != null) {
return vec;
}
}

return ValkyrienSkies.toJOMLd(position);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,4 @@ public abstract class MixinTurtleMoveCommand {
}
}
}

//CUSTOM METHODS

@Unique
private static Vector3d getShipPosFromWorldPos(final Level world, final BlockPos position) {
final Iterable<Vector3d> detectedShips =
ValkyrienSkies.positionToNearbyShipsAndWorld(world, position.getX() + 0.5, position.getY() + 0.5,
position.getZ() + 0.5, 0.1);
for (final Vector3d vec : detectedShips) {
if (vec != null) {
return vec;
}
}

return ValkyrienSkies.toJOMLd(position);
}
}

0 comments on commit 469cfd0

Please sign in to comment.