use os.path.join to build the spawn chunk path
This commit is contained in:
6
world.py
6
world.py
@@ -147,10 +147,8 @@ class WorldRenderer(object):
|
||||
chunkY = spawnZ/16
|
||||
|
||||
## The filename of this chunk
|
||||
chunkFile = "%s/%s/c.%s.%s.dat" % (base36encode(chunkX % 64),
|
||||
base36encode(chunkY % 64),
|
||||
base36encode(chunkX),
|
||||
base36encode(chunkY))
|
||||
chunkFile = os.path.join(base36encode(chunkX % 64), base36encode(chunkY % 64),
|
||||
"c.%s.%s.dat" % (base36encode(chunkX), base36encode(chunkY)))
|
||||
|
||||
|
||||
data=nbt.load(os.path.join(self.worlddir, chunkFile))[1]
|
||||
|
||||
Reference in New Issue
Block a user