Add files via upload

master
AiTechEye 2022-05-17 15:12:12 +02:00 committed by GitHub
parent 3f2a8c580d
commit e32b4c9520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -24,4 +24,13 @@ for i1,v2 in pairs(deprecated) do
for i,v in pairs(v2.items) do
minetest.register_alias(v,v:gsub(v2.replace[1],v2.replace[2]))
end
end
end
minetest.register_on_joinplayer(function(player)
local m = player:get_meta()
local c = m:get_int("coins")
if c > 0 then
Coin(player,c)
m:set_int("coins",0)
end
end)