Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Fix tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbith committed Jan 15, 2019
1 parent 18affcb commit ed11bf3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ local function make_formspec(player_name)
local X = i % data.iX
local Y = (i % ipp - X) / data.iX + 1

fs[#fs + 1] = fmt("item_image_button[%f,%f;%f,%f;%s;%s;]",
fs[#fs + 1] = fmt("item_image_button[%f,%f;%f,%f;%s;%s_inv;]",
X - (sfinv_only and 0 or (X * 0.05)),
Y,
1.1,
Expand Down Expand Up @@ -687,8 +687,13 @@ local function get_fields(player, ...)

else for item in pairs(fields) do
if item:find(":") then
if item:sub(-4) == "_inv" then
item = item:sub(1,-5)
end

local is_fuel = get_fueltime(item) > 0
local recipes = get_recipes(item)

if progressive_mode then
recipes = craftguide.progressive_filter_recipes(recipes, player)
end
Expand Down

0 comments on commit ed11bf3

Please sign in to comment.