VSCode-Bedrock-Development-Extension
VSCode-Bedrock-Development-Extension copied to clipboard
Null Coalescing does not prevent undefined Molang variable error
Describe the bug When referencing a Molang variable that has not previously been defined, an error is thrown, even when using null coalescing to handle undefined variables
To Reproduce Steps to reproduce the behavior:
- Create a client entity and a linked animation
- In the animation, add a Molang expression similar to this:
v.width ?? 1 - Go back to the entity file
- The animation is now marked as faulty with the following error message:
The molang variable 'variable.width' is not defined, which should be defined in this '<entity identifier>'
Expected behavior The animation should be valid
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser: -
- Version: v7.0.46