[Scarpet Bug] `entity_list` throws an exception if it is passed a tag
altrisi opened this issue ยท 0 comments
Or at least with some of them, didn't test them all.
Example:
entity_list('beehive_inhabitors')
Stacktrace:
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.entity.EntityTypeTest.tryCast(Object)" because "entityTypeTest" is null
at net.minecraft.world.level.entity.EntityLookup.getEntities(EntityLookup.java:21) ~[minecraft-project-@-merged-named.jar:?]
at net.minecraft.world.level.entity.LevelEntityGetterAdapter.get(LevelEntityGetterAdapter.java:36) ~[minecraft-project-@-merged-named.jar:?]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:745) ~[minecraft-project-@-merged-named.jar:?]
at carpet.script.api.Entities.lambda$9(Entities.java:158) ~[main/:?]
at carpet.script.Expression$17.lazyEval(Expression.java:606) ~[main/:?]
at carpet.script.Expression.lambda$22(Expression.java:1353) ~[main/:?]
at carpet.script.Expression.evalValue(Expression.java:947) ~[main/:?]
at carpet.script.Expression.eval(Expression.java:940) ~[main/:?]
at carpet.script.CarpetExpression.lambda$13(CarpetExpression.java:112) ~[main/:?]
at carpet.script.utils.GlocalFlag.whileValueReturn(GlocalFlag.java:42) ~[main/:?]
at carpet.script.utils.GlocalFlag.getWhileDisabled(GlocalFlag.java:28) ~[main/:?]
at carpet.script.CarpetExpression.scriptRunCommand(CarpetExpression.java:112) ~[main/:?]
at carpet.commands.ScriptCommand.lambda$76(ScriptCommand.java:507) ~[main/:?]
at carpet.commands.ScriptCommand.handleCall(ScriptCommand.java:439) ~[main/:?]
...