Implement parts of clientchunkpool and fix softlock in the process

This commit is contained in:
Joscha 2017-04-09 09:52:11 +00:00
parent c5af7c2480
commit 23da1ea5d9
5 changed files with 90 additions and 31 deletions

View file

@ -2,8 +2,10 @@ from collections import namedtuple
Position = namedtuple("Position", "x y")
CHUNK_WIDTH = 64
CHUNK_HEIGHT = 32
#CHUNK_WIDTH = 64
#CHUNK_HEIGHT = 32
CHUNK_WIDTH = 32
CHUNK_HEIGHT = 16
def chunkx(value):
return value//CHUNK_WIDTH