NiFeather/FeatherMorph

Folia下处于不同region是交互模拟会报错

Closed this issue · 0 comments

[15:54:28 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Cannot getEntities asynchronously
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:85) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at net.minecraft.world.level.Level.getEntities(Level.java:1579) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.getNearbyEntities(CraftWorld.java:1146) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.rayTraceEntities(CraftWorld.java:1198) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.rayTrace(CraftWorld.java:1282) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.rayTrace(CraftWorld.java:1266) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at xiamomc.morph.misc.PlayerOperationSimulator.rayTrace(PlayerOperationSimulator.java:84) ~[FeatherMorph-1.0.14.jar:?]
        at xiamomc.morph.misc.PlayerOperationSimulator.simulateLeftClick(PlayerOperationSimulator.java:113) ~[FeatherMorph-1.0.14.jar:?]
        at xiamomc.morph.events.InteractionMirrorProcessor.simulateOperation(InteractionMirrorProcessor.java:432) ~[FeatherMorph-1.0.14.jar:?]
        at xiamomc.morph.events.InteractionMirrorProcessor.onPlayerInteract(InteractionMirrorProcessor.java:291) ~[FeatherMorph-1.0.14.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor328.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:git-Luminol-"7293124"]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:594) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:550) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:545) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:541) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleAnimate(ServerGamePacketListenerImpl.java:2575) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundSwingPacket.handle(ServerboundSwingPacket.java:25) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundSwingPacket.a(ServerboundSwingPacket.java:11) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$2(PacketUtils.java:102) ~[?:?]
        at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:173) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1648) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:408) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[15:54:28 ERROR]: Could not pass event PlayerInteractEvent to FeatherMorph v1.0.14
java.lang.IllegalStateException: Cannot getEntities asynchronously
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:86) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at net.minecraft.world.level.Level.getEntities(Level.java:1579) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.getNearbyEntities(CraftWorld.java:1146) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.rayTraceEntities(CraftWorld.java:1198) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.rayTrace(CraftWorld.java:1282) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.rayTrace(CraftWorld.java:1266) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at xiamomc.morph.misc.PlayerOperationSimulator.rayTrace(PlayerOperationSimulator.java:84) ~[FeatherMorph-1.0.14.jar:?]
        at xiamomc.morph.misc.PlayerOperationSimulator.simulateLeftClick(PlayerOperationSimulator.java:113) ~[FeatherMorph-1.0.14.jar:?]
        at xiamomc.morph.events.InteractionMirrorProcessor.simulateOperation(InteractionMirrorProcessor.java:432) ~[FeatherMorph-1.0.14.jar:?]
        at xiamomc.morph.events.InteractionMirrorProcessor.onPlayerInteract(InteractionMirrorProcessor.java:291) ~[FeatherMorph-1.0.14.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor328.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:git-Luminol-"7293124"]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:594) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:550) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:545) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:541) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleAnimate(ServerGamePacketListenerImpl.java:2575) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundSwingPacket.handle(ServerboundSwingPacket.java:25) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundSwingPacket.a(ServerboundSwingPacket.java:11) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$2(PacketUtils.java:102) ~[?:?]
        at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:173) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1648) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:408) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[luminol-1.20.4.jar:git-Luminol-"7293124"]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]