[GH-ISSUE #2830] Potion effect didn't last as same #706

Closed
opened 2026-11-02 15:41:17 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2830

What I did: I potted myself
What Happened: My pots didnt go as long as it supposed to say
What I expected: Pots last as the same
Horizon Version: v0.2.80
OS, CPU ,GPU: Windows 11, 13th Gen Intel(R) Core(TM) i5-13420H, NVIDIA GeForce RTX 3050 Laptop GPU

Reported on Discord by 𝕴𝖆𝖒𝕷𝖆𝖟𝖞𝖞 in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2830 > What I did: I potted myself > What Happened: My pots didnt go as long as it supposed to say > What I expected: Pots last as the same > Horizon Version: v0.2.80 > OS, CPU ,GPU: Windows 11, 13th Gen Intel(R) Core(TM) i5-13420H, NVIDIA GeForce RTX 3050 Laptop GPU Reported on Discord by **𝕴𝖆𝖒𝕷𝖆𝖟𝖞𝖞** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564641893986472027) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [8mb.video-J4Q-0Iye21V0.mp4](https://cdn.discordapp.com/attachments/1564641893986472027/1564641895425253376/8mb.video-J4Q-0Iye21V0.mp4?ex=6ae201d1&is=6ae0b051&hm=d5077313e1d7a2eccf28eb92ba6eb2ec889e77b4a526166455eb1e9890919c1d&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:41:17 +07:00
Author
Owner

@ludovic111 commented on GitHub (Oct 27, 2026):

𝕴𝖆𝖒𝕷𝖆𝖟𝖞𝖞 added on Discord:

Test it out on regular mc and see it urself

Its on 26.3

They f​ixed this on the vanilla

So u cant throw it down now

<!-- gh-comment-id:6444363600 --> @ludovic111 commented on GitHub (Oct 27, 2026): **𝕴𝖆𝖒𝕷𝖆𝖟𝖞𝖞** added on Discord: > Test it out on regular mc and see it urself > Its on 26.3 > They f​ixed this on the vanilla > So u cant throw it down now <!-- kira -->
Author
Owner

@degepie commented on GitHub (Oct 29, 2026):

🤖 Agent: degepie's AI agent (Claude Code), not by degepie personally.

This looks already fixed by #2235 (merged 27.10), in v0.2.91 and later. The report is from v0.2.80, where a splash measured its range to the middle of the player's body. A potion thrown at your own feet was therefore ~0.9 blocks away and gave about 77 % of the duration (Swiftness ~2:19 instead of 3:00). Since #2235 the range is measured between the two boxes, as in vanilla's ThrownSplashPotion.onHitAsPotion, so a throw at your feet gives the full duration.

Measured in game on v0.2.96 (and v0.2.91), server-thread single player:

Case Horizon Vanilla
Splash Swiftness at your feet, standing and running 3600 ticks 3600
Splash long Swiftness at your feet 9600 9600
Drunk Swiftness / long Swiftness 3600 / 9600 3600 / 9600
Lingering Swiftness (cloud) ~900 (¼) ¼

The effects also count down 1:1 (202 ticks over 10.1 s at 20 TPS), and the inventory shows a matching time. I couldn't find another duration mismatch, so this can probably be closed. If the reporter still sees short potions on v0.2.91+, a description of how the potion was used (splash at a distance, lingering, tipped arrow) would help.

<!-- gh-comment-id:6493268056 --> @degepie commented on GitHub (Oct 29, 2026): 🤖 Agent: degepie's AI agent (Claude Code), not by degepie personally. This looks already fixed by #2235 (merged 27.10), in v0.2.91 and later. The report is from v0.2.80, where a splash measured its range to the middle of the player's body. A potion thrown at your own feet was therefore ~0.9 blocks away and gave about 77 % of the duration (Swiftness ~2:19 instead of 3:00). Since #2235 the range is measured between the two boxes, as in vanilla's `ThrownSplashPotion.onHitAsPotion`, so a throw at your feet gives the full duration. Measured in game on v0.2.96 (and v0.2.91), server-thread single player: | Case | Horizon | Vanilla | | --- | --- | --- | | Splash Swiftness at your feet, standing and running | 3600 ticks | 3600 | | Splash long Swiftness at your feet | 9600 | 9600 | | Drunk Swiftness / long Swiftness | 3600 / 9600 | 3600 / 9600 | | Lingering Swiftness (cloud) | ~900 (¼) | ¼ | The effects also count down 1:1 (202 ticks over 10.1 s at 20 TPS), and the inventory shows a matching time. I couldn't find another duration mismatch, so this can probably be closed. If the reporter still sees short potions on v0.2.91+, a description of how the potion was used (splash at a distance, lingering, tipped arrow) would help.
Author
Owner

@levzzz5154 commented on GitHub (Oct 29, 2026):

🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

Fixed by #2235 (in v0.2.91 and later; the report is from v0.2.80). A splash potion now measures its range from its box to the player's box, as vanilla's ThrownSplashPotion.onHitAsPotion does (splash_distance_sqr, crates/horizon-client/src/game/potions.rs), so a potion thrown at your feet gives the full duration. On a current build, the measurements in the comment above match vanilla: Swiftness 3600 ticks, long Swiftness 9600.

<!-- gh-comment-id:6504467705 --> @levzzz5154 commented on GitHub (Oct 29, 2026): 🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. Fixed by #2235 (in v0.2.91 and later; the report is from v0.2.80). A splash potion now measures its range from its box to the player's box, as vanilla's `ThrownSplashPotion.onHitAsPotion` does (`splash_distance_sqr`, `crates/horizon-client/src/game/potions.rs`), so a potion thrown at your feet gives the full duration. On a current build, the measurements in the comment above match vanilla: Swiftness 3600 ticks, long Swiftness 9600.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#706
No description provided.