mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Fix delete items 4-9 after closing crafting table
This commit is contained in:
parent
4a0efa36fd
commit
e5e74cca70
@ -130,8 +130,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
local size = string.len(formspec)
|
local size = string.len(formspec)
|
||||||
local marker = string.sub(formspec,size-2)
|
local marker = string.sub(formspec,size-2)
|
||||||
if marker == "inv" or marker == "wob" then
|
if marker == "inv" or marker == "wob" then
|
||||||
set_inventory(player)
|
|
||||||
drop_fields(player,"craft")
|
drop_fields(player,"craft")
|
||||||
|
set_inventory(player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user