0

Fixed empty sign handling, updated findSigns.py

This commit is contained in:
Andrew Chin
2010-12-31 23:35:18 -05:00
parent 7b6bbbc267
commit 97aa81311c
2 changed files with 14 additions and 13 deletions

View File

@@ -906,15 +906,14 @@ class ChunkRenderer(object):
for entity in tileEntities:
if entity['id'] == 'Sign':
msg=' \n'.join([entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']])
if not msg.strip():
if msg.strip():
# convert the blockID coordinates from local chunk
# coordinates to global world coordinates
newPOI = dict(type="sign",
x= entity['x'],
y= entity['y'],
z= entity['z'],
msg="%s \n%s \n%s \n%s" %
(entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']),
msg=msg,
chunk= (self.chunkX, self.chunkY),
)
self.queue.put(["newpoi", newPOI])