Revert the despawn range.

This commit is contained in:
Relintai 2020-05-23 18:24:25 +02:00
parent 8bf46093e7
commit b4867ec012

View File

@ -82,7 +82,7 @@ func _process(delta):
var l : float = (Vector2(cpos.x, cpos.z) - Vector2(c.position_x, c.position_z)).length() var l : float = (Vector2(cpos.x, cpos.z) - Vector2(c.position_x, c.position_z)).length()
if l > chunk_spawn_range + 3: if l > chunk_spawn_range + 2:
# print("despawn " + str(Vector3(c.position_x, c.position_y, c.position_z))) # print("despawn " + str(Vector3(c.position_x, c.position_y, c.position_z)))
remove_chunk_index(i) remove_chunk_index(i)
i -= 1 i -= 1