mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 12:05:01 +00:00
Starbeamrainbowlabs
36a6bf6b49
When you do weac.notify(player_name, "info", "msg"), Lua auto-inserts a `self` table which refers to the main `Notify` table there. This is because `local function call()` is registered via `setmetatable(Notify, ...)`, which auto-inserts `self` as the 1st argument. To this end, this command adds a dummy 1st argument `_self` to capture this extra table to avoid all args being shifted by 1. |
||
---|---|---|
.. | ||
notify.lua | ||
validate.lua |