From 74d0303dc3cd490183bbaff8ef2302ee64d27efd Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sat, 30 May 2015 19:09:03 +0200 Subject: [PATCH] Fixed very rare occurrence with invtweak's formspec - Solves #70 and crash on May 30th, 2015, 18h58 --- mods/invtweak/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/invtweak/init.lua b/mods/invtweak/init.lua index c14ce98a..9672f921 100755 --- a/mods/invtweak/init.lua +++ b/mods/invtweak/init.lua @@ -15,6 +15,7 @@ tweak.buttons = { local function get_formspec_size(formspec) local w = 8 local h = 7.5 + if not formspec then return end local sstring = string.find(formspec,"size[",1,true) if sstring ~= nil then sstring = string.sub(formspec, sstring+5)