1
0
Fork 0

Fixed duplication bug

hollow_logs_ref_recovery
the-real-herowl 2023-11-26 00:39:55 +01:00 committed by the-real-herowl
parent b4080b6275
commit f1c5f0ca1c
1 changed files with 3 additions and 3 deletions

View File

@ -210,14 +210,14 @@ minetest.register_on_joinplayer(function(player)
--The player might have items remaining in the slots from the previous join; this is likely
--when the server has been shutdown and the server didn't clean up the player inventories.
mcl_util.move_player_list(player, "stonecutter_input")
mcl_util.move_player_list(player, "stonecutter_output")
player:get_inventory():set_list("stonecutter_output", {})
end)
minetest.register_on_leaveplayer(function(player)
set_selected_item(player, nil)
mcl_util.move_player_list(player, "stonecutter_input")
mcl_util.move_player_list(player, "stonecutter_output")
player:get_inventory():set_list("stonecutter_output", {})
end)
---Update content of the stonecutter output slot with the input slot and the selected item
@ -259,7 +259,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields.quit then
mcl_util.move_player_list(player, "stonecutter_input")
mcl_util.move_player_list(player, "stonecutter_output")
player:get_inventory():set_list("stonecutter_output", {})
return
end