mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Fixed very rare occurrence with invtweak's formspec
- Solves #70 and crash on May 30th, 2015, 18h58
This commit is contained in:
parent
59f42c1935
commit
74d0303dc3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user