1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-17 15:45:22 +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

@@ -12,7 +12,6 @@ pclasses.api.register_class("hunter", {
minetest.chat_send_player(pname, "You are now a hunter")
minetest.sound_play("pclasses_full_hunter", {to_player=pname, gain=1})
end
pclasses.api.util.on_update(pname)
minetest.log("action", "[PClasses] Player " .. pname .. " become a hunter")
end,
on_unassigned = function(pname)