Skip to content

Commit f9c11f1

Browse files
committed
Update for 2.14.0-beta.dev.20241205.1
1 parent 3a9f2da commit f9c11f1

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"watch": "npx tsc --build --watch --pretty --preserveWatchOutput"
1111
},
1212
"devDependencies": {
13-
"@wayward/types": "^2.14.0-beta.dev.20241203.1",
13+
"@wayward/types": "^2.14.0-beta.dev.20241204.1",
1414
"rimraf": "3.0.2",
1515
"typescript": "^5.7.2"
1616
}

src/DebugTools.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ import InspectDialog from "./ui/InspectDialog";
8787
import DebugToolsPanel from "./ui/component/DebugToolsPanel";
8888
import TemperatureInspection from "./ui/inspection/Temperature";
8989
import Version from "./util/Version";
90+
import { RendererConstants } from "@wayward/game/renderer/RendererConstants";
9091

9192
/**
9293
* An enum representing the possible states of the camera
@@ -556,14 +557,16 @@ export default class DebugTools extends Mod {
556557
public setCameraUnlocked(unlocked: boolean): void {
557558
if (unlocked) {
558559
this.cameraState = CameraState.Unlocked;
559-
this.unlockedCameraMovementHandler.position = new Vector2(localPlayer);
560+
this.unlockedCameraMovementHandler.position = new Vector2(localPlayer)
561+
.add(RendererConstants.cameraPositionOffset);
560562
this.unlockedCameraMovementHandler.velocity = Vector2.ZERO;
561563
this.unlockedCameraMovementHandler.transition = undefined;
562564
this.unlockedCameraMovementHandler.homingVelocity = 0;
563565

564566
} else {
565567
this.cameraState = CameraState.Transition;
566-
this.unlockedCameraMovementHandler.transition = new Vector2(localPlayer);
568+
this.unlockedCameraMovementHandler.transition = new Vector2(localPlayer)
569+
.add(RendererConstants.cameraPositionOffset);;
567570
}
568571
}
569572

@@ -696,7 +699,8 @@ export default class DebugTools extends Mod {
696699
}
697700

698701
if (this.cameraState === CameraState.Transition) {
699-
this.unlockedCameraMovementHandler.transition = new Vector2(localPlayer);
702+
this.unlockedCameraMovementHandler.transition = new Vector2(localPlayer)
703+
.add(RendererConstants.cameraPositionOffset);;
700704
if (Vector2.isDistanceWithin(this.unlockedCameraMovementHandler.position, localPlayer, 0.5)) {
701705
this.cameraState = CameraState.Locked;
702706
return undefined;

0 commit comments

Comments
 (0)