fixed voxel reset

This commit is contained in:
Marius Unsel 2026-02-23 03:23:36 +01:00
parent c76df16a5c
commit efd4369f41

View File

@ -69,11 +69,11 @@ export class Player {
} }
reset() { reset() {
this.voxels = resetVoxels(this.voxels)
this.voxelStandingOn = this.voxels[this.level.playerPos.voxelIdx] this.voxelStandingOn = this.voxels[this.level.playerPos.voxelIdx]
this.setToVoxelPosition(this.voxelStandingOn) this.setToVoxelPosition(this.voxelStandingOn)
this.direction = this.level.playerPos.direction this.direction = this.level.playerPos.direction
this.initRotation(this.direction) this.initRotation(this.direction)
resetVoxels(this.voxels)
} }
doneAnimating() { doneAnimating() {