Added conditional to only add signs that are not blank to the POI list.
This commit is contained in:
24
chunk.py
24
chunk.py
@@ -905,18 +905,18 @@ class ChunkRenderer(object):
|
|||||||
|
|
||||||
for entity in tileEntities:
|
for entity in tileEntities:
|
||||||
if entity['id'] == 'Sign':
|
if entity['id'] == 'Sign':
|
||||||
|
if entity['Text1'] != '' and entity['Text2'] != '' and entity['Text3'] != '' and entity['Text3'] != '':
|
||||||
# convert the blockID coordinates from local chunk
|
# convert the blockID coordinates from local chunk
|
||||||
# coordinates to global world coordinates
|
# coordinates to global world coordinates
|
||||||
newPOI = dict(type="sign",
|
newPOI = dict(type="sign",
|
||||||
x= entity['x'],
|
x= entity['x'],
|
||||||
y= entity['y'],
|
y= entity['y'],
|
||||||
z= entity['z'],
|
z= entity['z'],
|
||||||
msg="%s \n%s \n%s \n%s" %
|
msg="%s \n%s \n%s \n%s" %
|
||||||
(entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']),
|
(entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']),
|
||||||
chunk= (self.chunkX, self.chunkY),
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user