Fixed bug in find_true_spawn when spawnY is at a chunk border
Thanks to subz for pushing me to fix this!
This commit is contained in:
@@ -204,6 +204,7 @@ class World(object):
|
|||||||
if section['Y'] == targetSection:
|
if section['Y'] == targetSection:
|
||||||
blockArray = section['Blocks']
|
blockArray = section['Blocks']
|
||||||
return blockArray[inChunkX, inChunkZ, y % 16]
|
return blockArray[inChunkX, inChunkZ, y % 16]
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user