Set sand origin when command is given

This commit is contained in:
2021-04-24 22:34:25 +00:00
parent a5642409d2
commit 4026b410f4
5 changed files with 14 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ class ChunksManager:
if not c: return None
c.set_block_at(x%16, y%16, z%16, block)
def check_loaded(self, position, steps):
def check_loaded(self, position, steps=1):
x, y, z = utils.pint(position)
player_chunk = (x//16, 1, z//16)
for i in range(steps): # TODO: base off render_distance?