From 88cacb482338d348d9c2eb7425a5ba496204e27a Mon Sep 17 00:00:00 2001 From: Anavrins Date: Mon, 24 Aug 2020 23:11:25 -0400 Subject: [PATCH] More customization on canvasServer --- neural/canvasServer.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neural/canvasServer.lua b/neural/canvasServer.lua index 556dffe..6eeae18 100644 --- a/neural/canvasServer.lua +++ b/neural/canvasServer.lua @@ -43,14 +43,14 @@ local function update(scanned) -- items are centered at the mid-point of the cube -- boxes are aligned to the top corner - sigh if b.path then - box = canvas.addBox(x + .4, y + .4, z + .4, .2, .2, .2, 0xa0902080) + box = canvas.addBox(x + .4, y + .4, z + .4, .2, .2, .2, b.color or 0xa0902080) elseif b.name then pcall(function() - box = canvas.addItem({ x + .5, y + .5, z + .5 }, b.name, b.damage or b.metadata, .5) + box = canvas.addItem({ x + .5, y + .5, z + .5 }, b.name, b.damage or b.metadata, b.size or .5) end) end if not box then - box = canvas.addBox(x, y, z, 1, 1, 1, 0x8080ff30) + box = canvas.addBox(x, y, z, 1, 1, 1, b.color or 0x8080ff30) end if box then box.setDepthTested(false)