0

Fixed rendering of new height and depth limit in 1.18

This commit is contained in:
Andrew Francis Thomas
2021-12-15 15:26:45 -07:00
parent 7171af5873
commit a24ad4cb55
4 changed files with 13 additions and 13 deletions

View File

@@ -200,8 +200,8 @@ class World(object):
## clamp spawnY to a sane value, in-chunk value
if spawnY < 0:
spawnY = 0
if spawnY > 255:
spawnY = 255
if spawnY > 319:
spawnY = 319
## The chunk that holds the spawn location
chunkX = spawnX//16
@@ -236,7 +236,7 @@ class World(object):
spawnY += 1
# Next section, start at local 0
inChunkY = 0
return spawnX, 256, spawnZ
return spawnX, 320, spawnZ
class RegionSet(object):
"""This object is the gateway to a particular Minecraft dimension within a