fix: archi

This commit is contained in:
2026-04-27 10:53:50 +02:00
parent 8c84663472
commit 393b653cca
16 changed files with 242 additions and 192 deletions
+2 -2
View File
@@ -6,13 +6,13 @@ import { PlayerCamera } from "@/world/player/PlayerCamera";
import { PlayerController } from "@/world/player/PlayerController";
interface PlayerComponentProps {
octree?: Octree | null;
octree: Octree | null;
spawnY: number;
}
export function PlayerComponent({
octree = null,
spawnY,
octree,
}: PlayerComponentProps): React.JSX.Element {
const camera = useThree((state) => state.camera);
-5
View File
@@ -123,11 +123,6 @@ export function PlayerController({ octree }: PlayerControllerProps): null {
case MOVE_RIGHT_KEY:
keys.current.right = false;
break;
case INTERACT_KEY:
if (interaction.getState().focused?.kind === "trigger") {
interaction.releaseInteract();
}
break;
default:
return;
}