mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-06-30 07:20:39 +02:00
split ui_crafting_form
into craft grid/trash image and a single slot image. The latter is now used for a refill slot if user has creative priv or server is in creative mode.
This commit is contained in:
@ -32,6 +32,10 @@ function unified_inventory.get_formspec(player, page)
|
||||
formspec = formspec .. "background[-0.19,-0.2;11.4,8.4;ui_form_bg.png]"
|
||||
end
|
||||
|
||||
if unified_inventory.is_creative(player_name) and page == "craft" then
|
||||
formspec = formspec.."background[0,"..(unified_inventory.formspec_y + 2)..";1,1;ui_single_slot.png]"
|
||||
end
|
||||
|
||||
local fsdata = nil
|
||||
|
||||
-- Current page
|
||||
|
Reference in New Issue
Block a user