« Back to search

Mod

Runtime Strictness

by LMD · score 152.3 · license: MIT

Download latest release

Disallows questionable usage of the Lua API and Lua itself to help catch errors

developer_tools

Runtime Strictness for Luanti Mods

Strictest consists of two components:

  • Lua strictness: Will disallow string indexing and string–number coercion.
  • Luanti strictness: Disallows usage of deprecated APIs and using entity-only or player-only methods on the wrong type of object.

Particularly useful when writing new mods that don't target older Luanti versions.

Configuration

strictest.action can be set to either error or log:

  • error: Immediately throw an error on strictness violations.
  • log: Merely log the error (including a stacktrace).

Potentially partially redundant with the deprecated_lua_api_handling setting.

Usage

Install and enable strictest, then make sure to optionally depend on it in mod.conf.