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

机器界面被清空 #963

Open
Cassy-Lee opened this issue Oct 19, 2024 · 1 comment
Open

机器界面被清空 #963

Cassy-Lee opened this issue Oct 19, 2024 · 1 comment
Labels
🐞 Bug 抓虫子

Comments

@Cassy-Lee
Copy link

问题描述

在特定条件下(根据其他插件可能有不同,简单来说就是没测试过)机器的界面会变成空物品栏,可以在原本的非存储栏位放入物品并且将无法取出

问题复现率

高偶发

复现步骤

不确定如何复现,可能在 服务器重启 和 机器人输出物品 时发生

服务端类型

Paper

Minecraft 版本

1.20.x

Slimefun 版本

2024.09-release

其他插件信息

AntiSeedCracker, AuthMe, AutoMessager, *BetterEnchantBook, BlockLocker, CMILib, CoreProtect, DiceFurniture, Essentials, EssentialsProtect, EssentialsSpawn, ExoticGarden, ExploitFixer, FoxyMachines, FreedomChat, FurnitureLib, GSit, GuizhanLibPlugin, HamsterAPI, HoloDropsX, HoloMobHealth, IllegalStack, InteractionVisualizer, LaggRemover, LimitPillagers, LuckPerms, MiniMOTD, Multiverse-Core, NBTAPI, NewRandomTP, Nightvision, PlaceholderAPI, PlayerTitle, ProtectionLib, ProtocolLib, QuickShop-Hikari, Residence, *ServerMonitor, SkinsRestorer, Slimefun, SlimeGlue, SmoothTimber, spark, TAB, TrChat, TrMenu, Vault, ViaBackwards, ViaRewind, ViaVersion, WorldBorder, WorldEdit, WorldEditSUI, WorldGuard, ZombieApocalypse
插件较多,参考价值较低

补充信息

可能是因为在修改物品栏时出现异常导致错误的界面被替换为空白界面。
究其根本,是由于机器界面存储使用的是一整个物品栏(而不是仅存储状态),导致出现问题时丢失整个界面。
有一个修复方案:加载、存储、显示、变化时检查是否正确。
如果想从根本上解决问题,需要改为仅存储需要的格子和状态(比如物流系统的设置与频道)并在显示时根据机器来构建界面,较为底层并大概率导致很多插件失效。

@Cassy-Lee Cassy-Lee added the 🐞 Bug 抓虫子 label Oct 19, 2024
@Cassy-Lee
Copy link
Author

本插件的代码可能可以保证界面永远不会被清空,可以认为这个Issue是个建议,建议对物品栏界面进行检查以确保界面不被破坏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug 抓虫子
Projects
None yet
Development

No branches or pull requests

1 participant