Implement parts of clientchunkpool and fix softlock in the process
This commit is contained in:
parent
c5af7c2480
commit
23da1ea5d9
5 changed files with 90 additions and 31 deletions
6
utils.py
6
utils.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue