Fix regions being shifted by one during rotation
This fixes exaggerated tile counts in progress updates, reduces the calls to rendernode (for a small performance increase), and shifts the problem of unclickable signs in UR orientation further away.
This commit is contained in:
@@ -1788,18 +1788,18 @@ def getBiomeData(worlddir, chunkX, chunkY):
|
||||
biomeY = chunkY // 32
|
||||
rots = 0
|
||||
if _north == 'upper-right':
|
||||
biomeX = -biomeX
|
||||
biomeY = -biomeY
|
||||
biomeX = -biomeX-1
|
||||
biomeY = -biomeY-1
|
||||
rots = 2
|
||||
elif _north == 'lower-right':
|
||||
temp = biomeX
|
||||
biomeX = -biomeY
|
||||
biomeX = -biomeY-1
|
||||
biomeY = temp
|
||||
rots = 1
|
||||
elif _north == 'upper-left':
|
||||
temp = biomeX
|
||||
biomeX = biomeY
|
||||
biomeY = -temp
|
||||
biomeY = -temp-1
|
||||
rots = 3
|
||||
|
||||
biomeFile = "b.%d.%d.biome" % (biomeX, biomeY)
|
||||
|
||||
Reference in New Issue
Block a user