Skip to content

Fix splash potions turning into drinkable potions when re-sent by the…#703

Merged
florianreuth merged 4 commits into
ViaVersion:masterfrom
Term4:potion_fix
Jul 25, 2026
Merged

Fix splash potions turning into drinkable potions when re-sent by the…#703
florianreuth merged 4 commits into
ViaVersion:masterfrom
Term4:potion_fix

Conversation

@Term4

@Term4 Term4 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The 1.9->1.8 serverbound item conversion only restored the splash potion id (373 -> 438) when no Potion tag was present

Term4 added 2 commits July 12, 2026 17:41
… client

The 1.9->1.8 serverbound item conversion only restored the splash potion
id (373 -> 438) when no Potion tag was present, but the clientbound
conversion keeps that tag on the item. A creative mode client re-sending
its inventory (e.g. on inventory close) therefore turned every splash
potion into a drinkable one.
# Conflicts:
#	common/src/main/java/com/viaversion/viarewind/protocol/v1_9to1_8/storage/EntityTracker1_9.java

@florianreuth florianreuth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the code still has edge cases (not related to the PR), thank you!

@florianreuth
florianreuth merged commit 9e7c853 into ViaVersion:master Jul 25, 2026
1 check passed
@Term4

Term4 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

It does. I've seen people having issues with them in 1.7, so I'll be trying to fix that soon(ish). I have an issue with my network which basically makes it impossible to join even local servers on 1.7 tho unfortunately.

@couleurm

Copy link
Copy Markdown

is there a related issue/PR up about potions being affected by the client when they are in creative mode

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.

3 participants