Skip to content
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

Closed
Alexw9217 opened this issue Aug 4, 2024 · 7 comments
Closed

假人无法使用动作 Entity threw exception #292

Alexw9217 opened this issue Aug 4, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Alexw9217
Copy link

服务端版本 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后也不掉落任何物品
2024-08-04_19 38 18
2024-08-04_19 38 32

插件与数据包列表。 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

@Alexw9217 Alexw9217 added the bug Something isn't working label Aug 4, 2024
@Lumine1909
Copy link
Contributor

@s-yh-china
image

@s-yh-china
Copy link
Member

别骂了别骂了,晚上就修,或者谁发个pr

Lumine1909 added a commit to Lumine1909/LeavesFork that referenced this issue Aug 4, 2024
@Alexw9217
Copy link
Author

fe874278-5381-4dae-9fe9-022da3f400a9
另外在1.20.6版本中重力方块从末地祭坛出现而不是黑曜石平台这点能修吗?

@Lumine1909
Copy link
Contributor

fe874278-5381-4dae-9fe9-022da3f400a9 另外在1.20.6版本中重力方块从末地祭坛出现而不是黑曜石平台这点能修吗?

1.21还有这个问题吗?有的话会修 没有就得打钱了(

s-yh-china pushed a commit that referenced this issue Aug 4, 2024
@s-yh-china
Copy link
Member

fe874278-5381-4dae-9fe9-022da3f400a9 另外在1.20.6版本中重力方块从末地祭坛出现而不是黑曜石平台这点能修吗?

#237
我觉得很类似,你可以看看

@Bluemangoo
Copy link
Member

fe874278-5381-4dae-9fe9-022da3f400a9 另外在1.20.6版本中重力方块从末地祭坛出现而不是黑曜石平台这点能修吗?

参见 #237

@Alexw9217
Copy link
Author

fe874278-5381-4dae-9fe9-022da3f400a9 另外在1.20.6版本中重力方块从末地祭坛出现而不是黑曜石平台这点能修吗?

#237 我觉得很类似,你可以看看

确实是这个插件的问题 已经恢复

Lumine1909 added a commit to Lumine1909/LeavesFork that referenced this issue Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants