mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-11 00:25:20 +02:00
fix failed create voxel with key press 0 at startup of editVoxels.js
This commit is contained in:
parent
2e3e699e31
commit
c34f76620f
1 changed files with 1 additions and 1 deletions
|
@ -920,7 +920,7 @@ function keyPressEvent(event) {
|
|||
red: colors[color].red,
|
||||
green: colors[color].green,
|
||||
blue: colors[color].blue };
|
||||
Voxels.eraseVoxel(voxelDetails.x, voxelDetails.y, voxelDetails.z, voxelDetails.s);
|
||||
Voxels.eraseVoxel(newVoxel.x, newVoxel.y, newVoxel.z, newVoxel.s);
|
||||
Voxels.setVoxel(newVoxel.x, newVoxel.y, newVoxel.z, newVoxel.s, newVoxel.red, newVoxel.green, newVoxel.blue);
|
||||
setAudioPosition();
|
||||
playRandomAddSound(audioOptions);
|
||||
|
|
Loading…
Reference in a new issue