From 26be65e1bb2cd4bf78c6295650d183edf8b0059d Mon Sep 17 00:00:00 2001 From: 20kdc Date: Wed, 25 Apr 2018 15:57:02 +0100 Subject: [PATCH] Fix up some loading bugs in app-nbox2018 --- repository/apps/app-nbox2018.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repository/apps/app-nbox2018.lua b/repository/apps/app-nbox2018.lua index 726c905..afa3a18 100644 --- a/repository/apps/app-nbox2018.lua +++ b/repository/apps/app-nbox2018.lua @@ -579,10 +579,10 @@ local function reset() end local function loadObj(obj) - fileLabel = obj.label - fileTooltip = obj.tooltip - redstone = obj.emitRedstone - button = obj.buttonMode + fileLabel = obj.label or "" + fileTooltip = obj.tooltip or "" + redstone = obj.emitRedstone or false + button = obj.buttonMode or false local advances = { [false] = 65, [true] = 65 @@ -596,7 +596,7 @@ local function loadObj(obj) maxX = v[4], maxY = v[5], maxZ = v[6], - tex = v.texture, + tex = v.texture or "", rgb = v.tint or 0xFFFFFF } advances[vs] = advances[vs] + 1