Please sign in to comment.
Fix crash regression when invsize formspec gets used
The invsize formspec element is outdated. Even though, it is still supported, only a deprecation warning is shown, introduced by commit . The lua context passed to the log_deprecated method added by commit  is NULL for the invsize deprecation warning, as its run on the client and not the server. Commit  has removed checks for NULL inside the log_deprecated method, resulting in a crash when a formspec with an invsize element is parsed. This commit puts the check back. Fixes #3260. Referenced commits: : b5acec0 "Add proper lua api deprecated handling" : 7b8d372 "Use warningstream for deprecated field messages and refactor log_deprecated"
- Loading branch information