Health item broken
odecay opened this issue · comments
Description
on pickup of Heart health item, no health is restored and this error is logged.
2023-01-12T22:28:38.275362Z ERROR bevy_mod_js_scripting::runtime::native: Uncaught TypeError: globalThis.wrapValueRef is not a function
at <unknown> (punchyGetItemGrabEvents:16:42)
at globalThis.punchy.getItemGrabEvents (punchyGetItemGrabEvents:16:22)
at postUpdate (items/health/./health.ts:15:35)
To Reproduce
Start game, take some damage, press C over Heart item to pick it up.
Expected Behavior
Player health is restored
Additional Context
I assume this is could caused by changes after updating bevy_mod_js_scripting plugin.
This is an easy fix.