sortease-0.1.2.jar
Curse Maven Snippet
What's new
0.1.2
English
- Rewrote the player inventory partition logic: main inventory / hotbar are included per their own config toggles, while armor, off-hand, crafting and result slots are hard-isolated and can never be pulled into a sorting group (fixes sorting of the vanilla inventory in every view).
- Fixed own-inventory semantics: when the open menu is a player inventory screen (including Inventorio's), main slots are sortable even if "sort player main inventory" is disabled; the hotbar still honors its own toggle.
- Slot swaps are now atomic (two-phase write with rollback) and identical-stack swaps are skipped entirely, eliminating pointless slot updates and their accompanying movement animations.
- The reorder engine now compares stacks with
ItemStack.isSameItemSameTags(vanillaItemStack.equalsis identity-based in 1.20.1). - Added a preflight check: if nothing can be merged and every group is already in order, the job finishes with zero writes and zero broadcasts.
- Server-side deduplication: for each player, the content/layout signature plus the request parameters of the last finished sort are remembered; an identical repeat request on an unchanged container is silently skipped.
- Client-side visual deduplication: after a sort completes, the client remembers what the open screen shows; pressing the sort key again while nothing visible has changed no longer sends a request at all.
中文
- 重写了玩家背包的分区逻辑:主栏/快捷栏分别按各自开关参与整理;护甲、副手、合成区与结果槽一律硬隔离,绝不并入整理组(修复各种界面下原版物品栏无法整理的问题)。
- 修正“自身物品栏”判定:当打开的是玩家物品栏界面(含 Inventorio 的界面)时,即使关闭“整理玩家主栏”,主栏仍可整理;快捷栏依旧遵守自己的开关。
- 槽位交换改为原子操作(两阶段写入 + 失败回滚),且两槽内容完全相同时直接跳过写入,不再产生无意义的槽位更新与挪动动画。
- 重排引擎改用
ItemStack.isSameItemSameTags判断堆叠等价(1.20.1 中ItemStack.equals是对象同一性比较)。 - 新增整理前预检:若已无任何可合并项且所有分组均已有序,任务零写入、零广播直接结束。
- 服务端去重:为每位玩家记录上次整理完成后的容器内容/布局签名与请求参数;相同容器、内容未变时的重复请求会被静默跳过。
- 客户端“视觉去重”:整理完成后记住当前界面内容;只要界面上没有可见变化,再次按键不会发出任何请求。
This mod has no additional files

