Potion Fixes: #2191
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#2191
Loading…
Reference in New Issue
No description provided.
Delete Branch "Fix_waterbreathing_and_potion_icons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR ensures all potion icons disappear after their effect is gone.
And, stops the Breath bar from flashing when water_breathing is in effect.
It replaces this PR: MineClone2/MineClone2#1956
And, will fix: MineClone2/MineClone2#1744
Potion Icon Testing:
Start a new world, in creative mode to easily acquire the potions.
I recommend the "lingering" versions; as they have a short timer for their effects.
But, this bug applied to all potions. So, feel free to verify with the longer timers.
Potions that were broken:
(slow & swift are handled together in the code)
6. Swiftness Potion
7. Slowness Potion
Before this PR, the icons won't disappear after the timer is up. With this PR, they disappear automatically.
Water Breathing Testing:
Reuse the same world as above, and test the effects of the water breathing potion underwater.
The breath bar should no longer be flashing constantly with this PR.
7aa7451a17
to44b1d583a7
Tested all mentioned potions: Potions still work, after timeout: Icon disappears correctly, effect still stops, water breathing bar does not pop up during water breathing anymore.
good work <3
I haven't checked this yet, but does this also cover the effects of golden apples?
I think it does since that uses the same code as potions afaik
Yes, the golden apples just call upon the mcl_potions functions for their effects. So, the fix applies to them as well.
Edit: Hehe, Cora you beat me to the reply by seconds.