0

Merge branch 'blanksigns' of https://github.com/TheMagistrate/Minecraft-Overviewer into TheMagistrate-blanksigns

This commit is contained in:
Andrew Chin
2010-12-31 22:37:45 -05:00

View File

@@ -905,18 +905,19 @@ class ChunkRenderer(object):
for entity in tileEntities: for entity in tileEntities:
if entity['id'] == 'Sign': if entity['id'] == 'Sign':
msg=' \n'.join([entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']])
# convert the blockID coordinates from local chunk if not msg.strip():
# coordinates to global world coordinates # convert the blockID coordinates from local chunk
newPOI = dict(type="sign", # coordinates to global world coordinates
x= entity['x'], newPOI = dict(type="sign",
y= entity['y'], x= entity['x'],
z= entity['z'], y= entity['y'],
msg="%s \n%s \n%s \n%s" % z= entity['z'],
(entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']), msg="%s \n%s \n%s \n%s" %
chunk= (self.chunkX, self.chunkY), (entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']),
) chunk= (self.chunkX, self.chunkY),
self.queue.put(["newpoi", newPOI]) )
self.queue.put(["newpoi", newPOI])
# check to see if there are any signs in the persistentData list that are from this chunk. # check to see if there are any signs in the persistentData list that are from this chunk.