making sure that any source can query entities since they already can run code.

This commit is contained in:
gnembon committed 2020-06-16 10:33:47 -03:00
1 parent fe69aa65c4
commit 69e9de06d4
1 file changed
+2 -2
@@ -87,11 +87,11 @@ public class EntityValue extends Value
EntitySelector entitySelector = selectorCache.get(selector);
if (entitySelector != null)
{
return entitySelector.getEntities(source);
return entitySelector.getEntities(source.withMaxLevel(4));
}
entitySelector = new EntitySelectorReader(new StringReader(selector), true).read();
selectorCache.put(selector, entitySelector);
return entitySelector.getEntities(source);
return entitySelector.getEntities(source.withMaxLevel(4));
}
catch (CommandSyntaxException e)
{