mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 10:50:33 +01:00
bugfix
This commit is contained in:
parent
64207baa45
commit
630db84ad1
@ -93,7 +93,6 @@ unified_inventory.refill = minetest.create_detached_inventory(player_name.."refi
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
unified_inventory.refill:set_size("main", 1)
|
unified_inventory.refill:set_size("main", 1)
|
||||||
end)
|
|
||||||
|
|
||||||
-- trash slot
|
-- trash slot
|
||||||
unified_inventory.trash = minetest.create_detached_inventory("trash", {
|
unified_inventory.trash = minetest.create_detached_inventory("trash", {
|
||||||
@ -111,18 +110,12 @@ unified_inventory.trash = minetest.create_detached_inventory("trash", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
unified_inventory.trash:set_size("main", 1)
|
unified_inventory.trash:set_size("main", 1)
|
||||||
|
end)
|
||||||
|
|
||||||
-- set_inventory_formspec
|
-- set_inventory_formspec
|
||||||
unified_inventory.set_inventory_formspec = function(player,formspec)
|
unified_inventory.set_inventory_formspec = function(player,formspec)
|
||||||
if player then
|
if player then
|
||||||
if minetest.setting_getbool("creative_mode") then
|
|
||||||
-- if creative mode is on then wait a bit
|
|
||||||
minetest.after(0.01,function()
|
|
||||||
player:set_inventory_formspec(formspec)
|
player:set_inventory_formspec(formspec)
|
||||||
end)
|
|
||||||
else
|
|
||||||
player:set_inventory_formspec(formspec)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user