diff options
Diffstat (limited to 'player.gd')
-rw-r--r-- | player.gd | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |