mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-10 19:35:12 -05:00
430195381d
The engine implementation of `print` packs the varargs into a table and passes the table directly to `table.concat`. If you pass any value not supported by `table.concat` (particularly `nil`), the server crashes. This is unexpected behavior, as `print` is supposed to be able to work with anything. This patch changes the implementation so it first converts all arguments using `tostring`, which fixes the issue and makes the custom `print` function compatible with the stock Lua behavior. |
||
---|---|---|
.. | ||
async | ||
common | ||
fstk | ||
game | ||
mainmenu | ||
init.lua | ||
settingtypes.txt |