1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-17 23:55:23 +01:00

[pclasses & mff_pclasses] Use implicit on_update

- After executing on_unassigned and on_assigned, implicitly call
   on_update (or add a dummy on_update for assigning if there is none)
This commit is contained in:
LeMagnesium
2017-04-19 22:05:48 +02:00
parent 126ce0d7e4
commit b0ba6a7956
5 changed files with 9 additions and 7 deletions

View File

@@ -13,7 +13,6 @@ pclasses.api.register_class("wizard", {
minetest.chat_send_player(pname, "You are now a wizard.")
end
-- Add specs here
pclasses.api.util.on_update(pname)
minetest.log("action", "[PClasses] Player " .. pname .. " becomes a wizard")
end,
on_unassigned = function(pname)