Skip to content

Selector argument triggers the async catcher #520

@Citymonstret

Description

@Citymonstret

When using the selector arguments together with the asynchronous command execution coordinator you'll get a runtime error:

Caused by: java.lang.IllegalStateException: Asynchronous Chunk getEntities call!
	at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[paper-1.20.2.jar:git-Paper-297]
	at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2604) ~[?:?]
	at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:1545) ~[?:?]
	at net.minecraft.commands.arguments.selector.EntitySelector.addEntities(EntitySelector.java:176) ~[paper-1.20.2.jar:git-Paper-297]
	at net.minecraft.commands.arguments.selector.EntitySelector.findEntitiesRaw(EntitySelector.java:160) ~[paper-1.20.2.jar:git-Paper-297]
	at net.minecraft.commands.arguments.selector.EntitySelector.findEntities(EntitySelector.java:114) ~[paper-1.20.2.jar:git-Paper-297]
	at net.minecraft.commands.arguments.selector.EntitySelector.findSingleEntity(EntitySelector.java:102) ~[paper-1.20.2.jar:git-Paper-297]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions