small changed

master
A. Demant 2018-12-05 18:40:56 +01:00
parent c21b36faba
commit 59706fd96b
3 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ if tab[val] == nil then
end
end
local player_add_attribute=function(player,attrib,val)
xpfw.player_add_attribute=function(player,attrib,val)
local pm=player:get_meta()
local old_val=pm:get_float(attrib) or 0
pm:set_float(attrib,old_val+val)

View File

@ -7,3 +7,4 @@ for i,configs in ipairs({"decay"}) do
end
end
end

View File

@ -12,5 +12,6 @@ minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loadi
dofile(xpfw.path .. "/api.lua") -- API
dofile(xpfw.path .. "/config.lua") -- API
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")