Skip to content

Commit

Permalink
fix: missing vector3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceat committed Jul 16, 2024
1 parent e3b0bda commit 9b9f67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/modules/player_pet.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function tick_pet(character, pet, delta) {
const distance_to_player = pet.position.distanceTo(character.position)

if (distance_to_player > 50) {
pet.move(character.position.clone())
pet.move(character.position)
return
}

Expand Down

0 comments on commit 9b9f67f

Please sign in to comment.