Summary
When use_hanger_instead is set to true, neither hunger nor stamina is consumed by any Parcool ability.
Running Environment
Minecraft Version: 1.18.2
ParCool Version: 1.18.2-3.1.0.6-R
Forge Version (optional): 40.2.17
Detail
When use_hanger_instead is set to true, neither hunger nor stamina is consumed by any Parcool ability.
Stamina.java#72 calls player.causeFoodExhaustion in order to apply food exhaustion. That function checks !this.abilities.invulnerable && !this.level.isClientSide before calling this.foodData.addExhaustion(p_36400_);. I have debugged this myself: while playing both singleplayer and hosting LAN, this.level.isClientSide is true, preventing addExhaustion from being called. I have not tested this in online multiplayer. I'm not very familiar with Minecraft modding so I'm not sure why this is the case, otherwise I'd PR it for you myself. Replacing player.causeFoodExhaustion with player.foodData.addExhaustion appears to work as a stop-gap solution, however after reviewing this page I believe that solution may cause issues with multiplayer.
Additional Data
I have tested this both with my full modpack, with only Parcool and Appleskin mods, and with only Parcool. The issue seems to persist across all three.
Summary When
use_hanger_instead
is set to true, neither hunger nor stamina is consumed by any Parcool ability.Running Environment
Detail When
use_hanger_instead
is set to true, neither hunger nor stamina is consumed by any Parcool ability.Stamina.java#72
callsplayer.causeFoodExhaustion
in order to apply food exhaustion. That function checks!this.abilities.invulnerable && !this.level.isClientSide
before callingthis.foodData.addExhaustion(p_36400_);
. I have debugged this myself: while playing both singleplayer and hosting LAN,this.level.isClientSide
is true, preventingaddExhaustion
from being called. I have not tested this in online multiplayer. I'm not very familiar with Minecraft modding so I'm not sure why this is the case, otherwise I'd PR it for you myself. Replacingplayer.causeFoodExhaustion
withplayer.foodData.addExhaustion
appears to work as a stop-gap solution, however after reviewing this page I believe that solution may cause issues with multiplayer.Additional Data I have tested this both with my full modpack, with only Parcool and Appleskin mods, and with only Parcool. The issue seems to persist across all three.