diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-08-05 08:37:25 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-08-05 08:37:25 -0400 |
commit | 2d6a0ed60689ada1e99970ad1091a1f4af0ab156 (patch) | |
tree | 3bdccd7a8bf6e3b4a48bda02af7a65c775b9bafe /internal.lua | |
parent | f2914b3d4fc31364d02cab190445f11ffdef5e3a (diff) |
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.
Diffstat (limited to 'internal.lua')
-rw-r--r-- | internal.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal.lua b/internal.lua index 161280c..28fbde7 100644 --- a/internal.lua +++ b/internal.lua @@ -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 |