1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-17 20:45:22 +01:00
Files
luanti/builtin/game/misc.lua
Tim 58eb5f39d4 Builtin: Fix check for a player object in core.check_player_privs
core.check_player_privs accepts as first argument a name or player object, but just tested for a string.
This caused crashes inside builtin, when being passed any unexpected types.

This provides a better (duck-typing like) test, better error reporting.
2016-07-26 04:15:06 +01:00

5.3 KiB