You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you attempt to set the value of a config option that is nonexistent or not supported by the config.set method, it will result in a crash.
To Reproduce
config.set("thisIsNotARealConfigOption", true)
or
config set showMountPrompt false
Expected behavior
A lua error will occur and be handleable by the user's code.
Environment (please complete the following information):
OS: Windows 10 Home
OS Version: 22H2
CraftOS-PC Version: v2.8.3
Compiled from source? No
Additional context
None
The text was updated successfully, but these errors were encountered:
// If you're wondering why I'm using dynamic allocation for a static string that isn't needed past the end-of-scope,
// apparently there's some bug in the MSVC compiler's optimization that makes it sometimes try to delete static
// variables that a) are out of scope, and b) were never in scope. Of course, this results in a nasty crash due to
// trying to deallocate unallocated/invalid memory. The only workaround I've found is to make the static variables
// dynamic, thus telling MSVC to keep its grubby hands off allocation/deallocation. It's an unfortunate situation,
// but there's really no way around it.
It's probably related to this somehow. No idea why Windows decides to do these things! (For reference, this bug (properly) does not exist on other platforms.)
Describe the bug
If you attempt to set the value of a config option that is nonexistent or not supported by the config.set method, it will result in a crash.
To Reproduce
or
Expected behavior
A lua error will occur and be handleable by the user's code.
Environment (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: