Skip to content

Commit

Permalink
fix: fix scripting error when trying to use health item.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Jan 13, 2023
1 parent c9f8b8f commit 6694de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl JsRuntimeOp for ItemGetGrabEvents {
// `wrapValueRef` on each item to wrap the them in a Proxy that will make it behave
// like a normal JavaScript object.
return bevyModJsScriptingOpSync('punchyGetItemGrabEvents')
.map(x => globalThis.wrapValueRef(x));
.map(x => Value.wrapValueRef(x));
}
"#,
)
Expand Down

0 comments on commit 6694de2

Please sign in to comment.