The Bug:
Using the set_stew_effect loot function to set very long effect durations on suspicious stews makes them give no effects.
Steps to Reproduce:
Obtain a suspicious stew without any effects by using the command provided below.
/give @s minecraft:suspicious_stew[minecraft:suspicious_stew_effects=[]]Hold the suspicious stew in your main hand and give it night vision with a very long duration by using the command provided below.
/item modify entity @s weapon.mainhand {type:"minecraft:set_stew_effect",effects:[{type:"minecraft:night_vision",duration:1000000000}]}Eat the suspicious stew.
Observe if you are given night vision.
Observed Behavior:
Suspicious stews with very long effect durations set by the set_stew_effect loot function give no effects.
Expected Behavior:
Suspicious stews would give their effects for the very long durations set by the loot function.