Repository navigation
Skip sorting horse inventories - #2
Merged
UrAvgCode merged 2 commits intoOct 28, 2026
Merged
Conversation
Horse inventories report InventoryType.CHEST, so non-chested horses fell through to the default case and got fully sorted, swapping the saddle and armor slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
good catch, it affects the nautilus too and i added it to the no-op case. |
UrAvgCode
added a commit
that referenced
this pull request
Oct 28, 2026
horse and nautilus inventories report InventoryType.CHEST, so they fell through to the default case and got fully sorted, swapping the saddle and armor slots. Co-authored-by: UrAvgCode <dev@uravgcode.com>
Contributor
Author
|
If I wouldn't use AI for these kinda things, I would simply not find the time. So I thought I rather just share my issue and fix and you decide. Best Regards! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Horse inventories report
InventoryType.CHEST. Llamas and otherChestedHorses are handled, but plain horses (and other non-chestedAbstractHorses) fall through todefaultand the whole inventory gets sorted. This happens on open with auto-sort enabled, or on a sort click on an empty slot.The sorter refills from slot 0 by category, so the armor ends up in the saddle slot and the saddle in the armor slot. The horse can no longer be steered, and the armor is no longer rendered.
Seen on Paper 26.2 with 0.5.1.
Fix
Add a no-op
case AbstractHorse _ -> {}afterChestedHorsein both switches (click and open). These inventories only hold the saddle and armor slots, so there is nothing to sort.Possibly also affected (not changed here)
Nautiluses (
AbstractNautilus) also have saddle + body armor slots. If their inventory reportsCHESTtoo, they would hit the same issue. I did not verify this, so I kept this PR minimal.🤖 Generated with Claude Code