Remove mesh hand node when player exits (#84)

This commit is contained in:
Johannes Fritz 2023-02-15 14:07:27 -06:00 committed by GitHub
parent b49907c4b1
commit 1d1053dbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,13 @@ end)
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)
skins.ui_context[player:get_player_name()] = nil 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) end)
player_api.register_model("skinsdb_3d_armor_character_5.b3d", { player_api.register_model("skinsdb_3d_armor_character_5.b3d", {