Place simplest voxel by default, not a potentially inexistent one

master
Marc Gilleron 2017-08-15 23:43:42 +02:00
parent 30a69f9cdd
commit 0690b1a3f8
1 changed files with 2 additions and 1 deletions

View File

@ -54,8 +54,9 @@ func _fixed_process(delta):
if has_cube == false:
pos = hit.position
if can_place_voxel_at(pos):
_terrain.get_storage().set_voxel_v(2, pos)
_terrain.get_storage().set_voxel_v(1, pos)
_terrain.make_voxel_dirty(pos)
print("Place voxel at ", pos)
else:
print("Can't place here!")