mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-12-22 15:30:19 +01:00
Remove mesh hand node when player exits (#84)
This commit is contained in:
parent
b49907c4b1
commit
1d1053dbc2
7
init.lua
7
init.lua
@ -63,6 +63,13 @@ end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
skins.ui_context[player:get_player_name()] = nil
|
||||
player:get_inventory():set_size("hand", 0)
|
||||
end)
|
||||
|
||||
minetest.register_on_shutdown(function()
|
||||
for _, player in pairs(minetest.get_connected_players()) do
|
||||
player:get_inventory():set_size("hand", 0)
|
||||
end
|
||||
end)
|
||||
|
||||
player_api.register_model("skinsdb_3d_armor_character_5.b3d", {
|
||||
|
Loading…
Reference in New Issue
Block a user