-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
假人无法使用动作 Entity threw exception #292
Labels
bug
Something isn't working
Comments
别骂了别骂了,晚上就修,或者谁发个pr |
Lumine1909
added a commit
to Lumine1909/LeavesFork
that referenced
this issue
Aug 4, 2024
#237 |
参见 #237 |
确实是这个插件的问题 已经恢复 |
Lumine1909
added a commit
to Lumine1909/LeavesFork
that referenced
this issue
Sep 15, 2024
* Try to fix LeavesMC#291, LeavesMC#292
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
服务端版本 LeavesMC Version
Leaves version 1.21-39-master@a7b7a1a (2024-08-03T04:53:19Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
预期的行为 Expected behavior
假人正常使用动作
观测到的实际行为 Observed/Actual behavior
使用/bot action botname attack 10 -1时,假人消失不见,但仍然存在服务器,服务器后台报错。
[19:32:12 ERROR]: Entity threw exception at world:9388.028845712304,89.0,-22654.420249719147
java.util.NoSuchElementException: null
at java.base/java.util.ArrayList.getFirst(ArrayList.java:439) ~[?:?]
at org.leavesmc.leaves.bot.ServerBot.getTargetEntity(ServerBot.java:419) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at org.leavesmc.leaves.bot.agent.actions.AttackAction.doTick(AttackAction.java:29) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at org.leavesmc.leaves.bot.agent.BotAction.tryTick(BotAction.java:79) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at org.leavesmc.leaves.bot.ServerBot.tick(ServerBot.java:411) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1245) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:732) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:39) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:709) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1794) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:477) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1596) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1303) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) ~[leaves-1.21.jar:1.21-39-a7b7a1a]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
复现步骤 Steps/models to reproduce
召唤一个假人,右键打开他的背包给他一把剑,使用/bot action botname attack 10 -1后假人消失不见,使用/bot remove botname后也不掉落任何物品
插件与数据包列表。 Plugin and Datapack List.
[19:39:45 INFO]: Server Plugins (13):
[19:39:45 INFO]: Bukkit Plugins:
[19:39:45 INFO]: - AuthMe, ChainMining, Essentials, EssentialsChat, EssentialsProtect, EssentialsSpawn, Geyser-Spigot, GSit, lovelyCreeper, LuckPerms
[19:39:45 INFO]: ViaBackwards, ViaVersion, WorldListTrashCan
更多详细信息。 The more information.
No response
The text was updated successfully, but these errors were encountered: