Skip to content

Commit

Permalink
fix fishing hook spawn position
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Dec 20, 2024
1 parent acc3053 commit e2ef36a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ public FishingHookMixin(EntityType<?> entityType, Level level) {
@Share("dir") LocalRef<Vec3> controllerDir, @Share("pos") LocalRef<Vec3> controllerPos)
{
if (controllerPos.get() != null) {
instance.moveTo(
original.call(
instance,
controllerPos.get().x + controllerDir.get().x * 0.6F,
controllerPos.get().y + controllerDir.get().y * 0.6F,
controllerPos.get().z + controllerDir.get().z * 0.6F,
yRot, xRot);
original.call(instance, x, y, z, yRot, xRot);
} else {
original.call(instance, x, y, z, yRot, xRot);
}
Expand Down

0 comments on commit e2ef36a

Please sign in to comment.