Skip to content

Commit 637e20e

Browse files
author
Sean Trott
committed
New location
1 parent b1cfc35 commit 637e20e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/nluas/language/core_specializer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,13 @@ def get_spgValue(self, spg, valueType):
229229
final = {}
230230
value = getattr(spg, valueType)
231231
#goal = spg.goal
232+
if value.type() == "location":
233+
return {'location': int(value.xCoord), int(value.xCoord)}
232234
if value.index() == spg.landmark.index():
233235
return {'objectDescriptor': self.get_objectDescriptor(value)}
234236
if value.type() == "RD":
235237
return {'objectDescriptor': self.get_objectDescriptor(value)}
238+
236239
return final
237240

238241

0 commit comments

Comments
 (0)