summaryrefslogtreecommitdiff
path: root/player.gd
diff options
context:
space:
mode:
Diffstat (limited to 'player.gd')
-rw-r--r--player.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/player.gd b/player.gd
index cf8e90e..d010294 100644
--- a/player.gd
+++ b/player.gd
@@ -40,10 +40,10 @@ func _process(delta: float) -> void:
acc = 0
print(block_chunk_idx)
print(chunk_idx)
- var chunk = get_tree().current_scene.chunks[chunk_idx.x][chunk_idx.y][chunk_idx.z]
- var block = chunk[block_chunk_idx.x][block_chunk_idx.y][block_chunk_idx.z]
- print(block)
- print(Main.BlockType.keys()[block.type])
+ var chunk: Chunk = get_tree().current_scene.chunks[chunk_idx.x][chunk_idx.y][chunk_idx.z]
+ var block: Block = chunk.blocks[block_chunk_idx.x][block_chunk_idx.y][block_chunk_idx.z]
+ print(point, "==", block.position) #??
+ print(Block.Type.keys()[block.type])
func _physics_process(delta: float) -> void: