diff --git a/mods/CORE/Player/src/Player/inventory.lua b/mods/CORE/Player/src/Player/inventory.lua index 98df051..201df04 100644 --- a/mods/CORE/Player/src/Player/inventory.lua +++ b/mods/CORE/Player/src/Player/inventory.lua @@ -27,13 +27,6 @@ PlayerInventoryUI:registerOnFormFieldActionMatch('.+::%S+::group_button',functio PlayerInventoryUI:showForm(playerName) end) -Smc.registerGlobalStepForEachPlayer(1, function(deltaTime, player) - local playerName = player:get_player_name() - if Smc.getActiveFormspec(playerName) == '' then - player:set_inventory_formspec(PlayerInventoryUI:getFormSpecString(playerName)) - end -end) - PlayerInventoryUI:registerOnFormFieldActionMatch('.+::craft_item', function(player, fieldName, fieldValue) ---@type InvRef local inv = player:get_inventory() diff --git a/mods/UI/PlayerInventoryUI/src/PlayerInventoryUI/getCraftPane.lua b/mods/UI/PlayerInventoryUI/src/PlayerInventoryUI/getCraftPane.lua index d400d1f..1566593 100644 --- a/mods/UI/PlayerInventoryUI/src/PlayerInventoryUI/getCraftPane.lua +++ b/mods/UI/PlayerInventoryUI/src/PlayerInventoryUI/getCraftPane.lua @@ -75,13 +75,13 @@ local function getCraftPane(self, playerName, paneType) craftsListForm: itemImage(w+0.0625, h+0.0625, 1, 1, output) else - local k = time%#craft+1 - craft = craft[k] + local craft = craft[1] assert(craft ~= nil) craftsListForm: imageButton(w, h, 1.125, 1.125, 'player_inventory_craft_pane_button_background.png', craft.group..'::'..paneType..'::group_button'): - itemImage(w+0.0625, h+0.0625, 1, 1, craft.output) + itemImage(w+0.0625, h+0.0625, 1, 1, craft.output): + image(w, h, 1.125, 1.125, 'player_inventory_craft_pane_group_button_overlay.png') end w = w + 1.125 diff --git a/mods/UI/PlayerInventoryUI/textures/player_inventory_craft_pane_group_button_overlay.png b/mods/UI/PlayerInventoryUI/textures/player_inventory_craft_pane_group_button_overlay.png new file mode 100644 index 0000000..edc08c2 Binary files /dev/null and b/mods/UI/PlayerInventoryUI/textures/player_inventory_craft_pane_group_button_overlay.png differ