From b1d9bfe7e80b4d95acd26d0ab6a1ce34ad18d91c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 24 Nov 2024 11:46:03 +0100 Subject: next commit --- player.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player.gd') 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: -- cgit v1.2.3