fixed incorrect recognition of some NULL objects

This commit is contained in:
gnembon committed 2020-09-28 22:17:29 -03:00
1 parent 9b35c19bea
commit d5ebe5361c
4 files changed
+5 -6

No files matched your search

@@ -375,7 +375,7 @@ public class WorldAccess {
if (lv.size() < locator.offset) throw new InternalExpressionException("'set_poi' requires the new poi type or null, after position argument");
Value poi = lv.get(locator.offset+0).evalValue(c);
PointOfInterestStorage store = cc.s.getWorld().getPointOfInterestStorage();
if (poi == Value.NULL)
if (poi.isNull())
{ // clear poi information
if (store.getType(pos).isPresent())
{