Skip to content

Backport cartographer AIR trade fix to 1.21.1 - #88

Open
idkwhodatis wants to merge 1 commit into
Ramixin:fabricfrom
idkwhodatis:pr/1.21.1-cartographer-air-fix
Open

idkwhodatis wants to merge 1 commit into
Ramixin:fabricfrom
idkwhodatis:pr/1.21.1-cartographer-air-fix

Conversation

@idkwhodatis

Copy link
Copy Markdown

This fixes a crash in Visible Traders 1.3.2 on Minecraft 1.21.1 when trading with cartographers.

The crash was caused by unresolved async cartographer trades using an AIR placeholder that could leak into the villager’s normal offers and later fail during NBT saving with Item must not be minecraft:air.

The fix:

tracks async trade completion separately from the returned offer,
prevents unresolved placeholders from entering vanilla villager offers,
unwraps completed futures into normal trades,
safely skips cartographer map trades that resolve to null.

Tested in-game with the previously crashing cartographer trade/save flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant