Skip to content

Commit

Permalink
Fix crash with new translation system
Browse files Browse the repository at this point in the history
  • Loading branch information
bousket committed Oct 18, 2019
1 parent 7d86772 commit f861288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions craft_all.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local S = unified_inventory.gettext
local F = unified_inventory.fgettext
local S = minetest.get_translator("unified_inventory")
local F = minetest.formspec_escape

local has_stamina = minetest.global_exists("stamina")

Expand All @@ -11,7 +11,7 @@ local function onload()
get_formspec = function(player, perplayer_formspec)
local formspecy = perplayer_formspec.formspec_y
local formspec = unified_inventory_plus.craft_all(player, perplayer_formspec).formspec
formspec = formspec.."button[5.15, "..(formspecy + 1.18)..";0.8,0.6;craft_craftall;"..S("All").."]"
formspec = formspec.."button[5.15, "..(formspecy + 1.18)..";0.8,0.6;craft_craftall;"..F(S("All")).."]"
return {formspec=formspec}
end,
}
Expand Down

0 comments on commit f861288

Please sign in to comment.