Skip to content

[问题]: 通过菜单跨世界传送后容器与物品栏状态不同步 #262

@xmsaw4

Description

@xmsaw4

🚀 是否已尝试最新的版本

  • 我已更新 TrMenu 至最新的版本, 并且同样复现该问题.

📚 是否已查阅 Wiki

  • 我已查阅 Wiki 对于该问题的相关内容, 并确定该问题是存在的.

🔗 是否存在重复 issue

  • 我已翻阅现有的 issue 没有发现内容重复, 亦或是对现有 issue 的更详细的描述.

📰 服务端详细信息

TrMenu Dump Information (Date: 2026-04-14 23:59:12)

| Server OS: Linux amd64 6.12.74+deb13+1-amd64
| Server software: Purpur - 1.21.4-2416-51aafbc (MC: 1.21.4) (1.21.4-R0.1-SNAPSHOT)
| Java version: Debian (OpenJDK Runtime Environment 21.0.10+7-Debian-1deb13u1)

| TrMenu: 3.12.0
Installed Plugins:
· AdvancedCrates - 4.7.4
· AlchimiaVitae - Build 9 (git 95fc682)
· AnimatedScoreboard - 0.3.8
· AuraSkills - 2.3.12
· AuthMe - 5.7.0-FORK-b53
· BentoBox - 3.5.0
· BentoBox-BSkyBlock - 1.19.1
· BentoBox-Bank - 1.9.0
· BentoBox-Biomes - 2.2.0
· BentoBox-Border - 4.5.1
· BentoBox-Challenges - 1.5.1
· BentoBox-Level - 2.21.3
· BentoBox-Limits - 1.27.0
· BentoBox-MagicCobblestoneGenerator - 2.7.0
· BentoBox-Warps - 1.16.0
· Bump - Build 43 (git 8952c73)
· CMI - 9.8.6.5
· CMILib - 1.5.9.2
· Citizens - 2.0.37-SNAPSHOT (build 3727)
· CompressionCraft - Build 6 (git ed37c51)
· ConsoleSpamFixReborn - 1.12.0
· CoreProtect - 23.1
· CraftEngine - 0.0.67.6
· CrystamaeHistoria - Build 40 (git 3d05b93)
· CtOnlineReward - 0.2.12
· Cultivation - Build 16 (git efc77ed)
· CustomCrops - 3.6.49
· CustomFishing - 2.3.19
· CustomNameplates - 3.0.38
· DFD_Sflimit - UNOFFICIAL
· DynaTech - Build 83 (git 2e31d18)
· ElectricSpawners - Build 5 (git 6fa0de2)
· ExcellentShop - 4.22.0
· ExoticGarden - Build 12 (git c5c034f)
· Exppond-Next - 2.5
· FKBoom - 2.2.2
· FastAsyncWorldEdit - 2.15.0+59372c5
· FluffyMachines - Build 40 (git 7583dd9)
· FoxyMachines - Build 34 (git 835ad8f)
· GeneticChickengineering - Build 13 (git 0e34881)
· GlobalMarketPlus - 1.3.9.3
· GuguSlimefunLib - Build 47 (git 8a7c08b)
· GuizhanLibPlugin - Build 62 (git aad97af)
· HMCCosmetics - 2.9.0
· HibiscusCommons - 0.9.0
· HotbarPets - Build 4 (git 0faa724)
· InfinityExpansion - Build 16 (git 850718f)
· JustEnoughGuide - 2.1.17
· LagFixer - 1.5.1.9 [build 140]
· LiteAnnouncer - 1.3.4.1
· LiteSignIn - 1.8.10.1
· LiteXpansion - Build 35 (git 47857d1)
· LogiTech - Build 3 (git 51ee3a5)
· LoginExpansion - 1.0.6
· LuckPerms - 5.5.42
· MMOInventory - 2.0-SNAPSHOT
· MMOItems - 6.10.1-SNAPSHOT
· MomoTech - Build 9 (git d1ded59)
· Multiverse-Core - 5.5.3
· MythicLib - 1.7.1-SNAPSHOT
· Netheopoiesis - Build 20 (git c35ffa5)
· Networks - Build 180 (git f473533)
· NoBuildPlus - 1.6.31
· PlaceholderAPI - 2.12.2
· PlayerCurrency - 1.2.2
· PlayerPoints - 3.3.3
· PlayerTask - 2.6.9
· PlayerTitle - 4.13.0
· PlugManX - 3.0.4
· ProtocolLib - 5.4.1-SNAPSHOT
· QuickShop-Hikari - 6.2.0.11
· RandomShop - 1.5.1
· RoseStacker - 1.5.39
· RykenSlimefunCustomizer - b122 (git cba8ef9)
· SFWorldEdit - Build 13 (git 717437d)
· SimpleMaterialGenerators - Build 5 zh-CN(SlimefunGuguProject) (git e05d257)
· SkinsRestorer - 15.12.0
· SlimeAEPlugin - Build 104 (git acc4f53)
· SlimeFrame - 1.6.2
· SlimeGlue - Build 26 (git 435fd15)
· SlimeHUD - Build 17 (git 7002847)
· Slimefun - a9ad669-Beta
· SlimefunAdvancements - Build 20 (git 024a05a)
· SlimefunLuckyBlocks - Build 4 (git 3ff0e5a)
· SoulJars - Build 10 (git 3bc8cab)
· Supreme - Build 23 (git 98df1c4)
· TAB-Bridge - 6.2.0
· TrChat - 2.4.0
· TrMenu - 3.12.0
· TranscEndence - Build 11 (git 2352ccc)
· Vault - 1.7.3-CMI
· ViaBackwards - 5.8.1
· ViaVersion - 5.8.1
· VillagerUtil - Build 2 zh-CN(ybw0014) (git f019674)
· WorldListTrashCan - 6.9.8
· ip2region - 2.0.0
· nightcore - 2.13.2

🔍 详细的描述

  1. 在 world1 世界,通过 TrMenu 菜单上的传送按钮,传送到 world_2 世界
  2. 传送到 world_2 世界后,找一个箱子并打开后关闭,箱子的模型大概率为一直打开状态
  3. 若箱子一直处于打开状态  在箱子附近,从背包里丢出任意物品,再捡回来 物品不能正常显示在物品栏
  4. 若不能复现 则反复通过trmenu菜单传送按钮两个世界来回传送 大概率成功复现
补充说明:
  - 这个 BUG 只在通过 TrMenu 进行跨世界传送后出现。
  - 如果传送不跨世界,或者在 TrMenu 被移除或使用原版命令跨世界传送的情况下,问题就不会发生。
  - 已经排除了 Multiverse-Core 和 CMI 等其他切换世界插件的干扰。
  - 复现BUG之后还有小概率会卡住TrMenu菜单 无法打开菜单(暂未知复现方法)


### 🗄 服务端日志

[23:46:22 ERROR]: Caught previously unhandled exception :
[23:46:22 ERROR]: Paper Async Command Builder Thread Pool - 1
java.util.ConcurrentModificationException: null
at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:1023) ~[?:?]
at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:1058) ~[?:?]
at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:1055) ~[?:?]
at java.base/java.util.AbstractMap.hashCode(AbstractMap.java:527) ~[?:?]
at com.mojang.brigadier.tree.CommandNode.hashCode(CommandNode.java:155) ~[purpur-1.21.4.jar:1.21.4-2416-51aafbc]
at java.base/java.util.HashMap.hash(HashMap.java:338) ~[?:?]
at java.base/java.util.HashMap.put(HashMap.java:618) ~[?:?]
at net.minecraft.commands.Commands.sendAsync(Commands.java:497) ~[purpur-1.21.4.jar:1.21.4-2416-51aafbc]
at net.minecraft.commands.Commands.lambda$sendCommands$6(Commands.java:479) ~[purpur-1.21.4.jar:1.21.4-2416-51aafbc]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

补充说明: 此报错不知是否与TrMenu相关 但是看起来像是异步问题 与本次反馈的跨世界传送 BUG 在时间上和操作上可能无直接关联,附上仅供参考



### ⚙ 配置文件

F:
update: 20
display:
material: grass
name: '&3&lTrMenu'
lore:
- ''
actions:
left: #通过其他传送插件命令切换世界
- 'command: cmi warp test1'
right:
- 'command: cmi warp test2'

 # left:   #原版命令切换世界
  #  - 'command: execute in minecraft:overworld run teleport 1 115 61' 
  #right: 
   # - 'command: execute in minecraft:the_nether run teleport 0 70 5' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions