Bartering with piglins in singleplayer crashes the game
Open
Toknightis21 messagesstarted Sep 15, 2026, 6:08 AM
gameplayfixed
查询ai
AI提示给我说
原因:DraftOut 的 LockoutServer 未初始化;可能因为普通单人/MultiMC 启动,未进入 DraftOut 比赛;或版本不匹配(26.1.1 vs 26.1.2)。
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.overworld()"
because "com.draftoutmc.draftout.server.LockoutServer.server" is null
at net.minecraft.world.entity.monster.piglin.PiglinAi.modifyExpressionValue$zba000$draftout$redirectBarterItems(PiglinAi.java:996)
at net.minecraft.world.entity.monster.piglin.PiglinAi.stopHoldingOffHandItem(PiglinAi.java:384)
也就是说:
你当时在猪灵附近,并且触发了猪灵以物易物相关行为。
猪灵在停止手持金锭时,执行了 DraftOut 注入到 PiglinAi 里的代码。
DraftOut 的代码去访问 LockoutServer.server,但这个对象是 null。
于是抛出 NullPointerException,导致实体 tick 崩溃,集成服务器也跟着崩溃。
所以崩溃点是:
Ticking entity
-> PiglinAi.stopHoldingOffHandItem
-> DraftOut 的 redirectBarterItems
-> LockoutServer.server 为 null
LockoutServer.server 是 DraftOut 用来管理比赛/锁定模式的服务器对象。
如果你是在普通单人世界、MultiMC 实例里直接启动,或者没有通过 DraftOut 的正常比赛流程进入,这个对象可能根本没有被赋值,仍然是 null。
但 DraftOut 的 Mixin 仍然在猪灵交易逻辑里运行,于是就崩了。
AI提示给我说
原因:DraftOut 的 LockoutServer 未初始化;可能因为普通单人/MultiMC 启动,未进入 DraftOut 比赛;或版本不匹配(26.1.1 vs 26.1.2)。
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.overworld()"
because "com.draftoutmc.draftout.server.LockoutServer.server" is null
at net.minecraft.world.entity.monster.piglin.PiglinAi.modifyExpressionValue$zba000$draftout$redirectBarterItems(PiglinAi.java:996)
at net.minecraft.world.entity.monster.piglin.PiglinAi.stopHoldingOffHandItem(PiglinAi.java:384)
也就是说:
你当时在猪灵附近,并且触发了猪灵以物易物相关行为。
猪灵在停止手持金锭时,执行了 DraftOut 注入到 PiglinAi 里的代码。
DraftOut 的代码去访问 LockoutServer.server,但这个对象是 null。
于是抛出 NullPointerException,导致实体 tick 崩溃,集成服务器也跟着崩溃。
所以崩溃点是:
Ticking entity
-> PiglinAi.stopHoldingOffHandItem
-> DraftOut 的 redirectBarterItems
-> LockoutServer.server 为 null
LockoutServer.server 是 DraftOut 用来管理比赛/锁定模式的服务器对象。
如果你是在普通单人世界、MultiMC 实例里直接启动,或者没有通过 DraftOut 的正常比赛流程进入,这个对象可能根本没有被赋值,仍然是 null。
但 DraftOut 的 Mixin 仍然在猪灵交易逻辑里运行,于是就崩了。
1
Background PinguApplast week(edited)
toknightis
2 Issues Found:
You sent a latest.log, which often lacks critical information. Please send the full MultiMC log from Edit Instance > Minecraft Log instead.
You sent your log as a file. Please press the Re-Upload Log button so the log will be re-uploaded to mclo.gs so people can see it without having to download it.Page 1/1 • MultiMC 26.1.1 Draftout latest.log
noura 🜛last week
please follow rule 7 and write your message in english @Toknightis
noura 🜛last week
if you can use ai to analyze your bug, you can use it to translate
ToknightisOPlast week
ToknightisOPlast week
here it is
noura 🜛last week
Bartering with piglins in singleplayer crashes the game
Veilast week
yeah I also had this
Veilast week
draftout tries to make the trades better in singleplayer too is my guess
11
Veilast week
236 lines | 1 problem automatically detected
Background PinguApplast week(edited)
veiivy
1 Issue Found:
Mod draftout seems to be causing this crash.Page 1/1 • 26.1.1 Draftout 471af05b crash-report
1
ToknightisOPlast week
ty
marinlast week
fixing
Veilast week
thx!!
Veilast week
hey so I don't think this is fixed
Veilast week(edited)
Background PinguApplast week(edited)
veiivy
1 Issue Found:
Mod draftout seems to be causing this crash.Page 1/1 • 26.1.1 Draftout 471af05b crash-report
marinlast week
draftout: Draftout 1.16.0 @Veimarinlast week
update the mod 
Veilast week
ohhh mb I swear I did
marinlast week
allg