forked from noxious/client
?
This commit is contained in:
parent
ecaf7f1de0
commit
41d3f73e92
@ -50,7 +50,7 @@ const updatePosition = (x: number, y: number) => {
|
||||
|
||||
const distance = Math.sqrt(Math.pow(targetX - currentX.value, 2) + Math.pow(targetY - currentY.value, 2))
|
||||
|
||||
if (distance > config.tile_size.x) {
|
||||
if (distance > config.tile_size.x / 0.75) {
|
||||
// Teleport: No animation
|
||||
currentX.value = targetX
|
||||
currentY.value = targetY
|
||||
|
Loading…
x
Reference in New Issue
Block a user