From b116e566768c2610c9c2615f1bdaaec36c6f5214 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 14 Apr 2019 17:04:28 -0400 Subject: [PATCH] ores: show items instead of colors --- neural/ores.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/neural/ores.lua b/neural/ores.lua index b43737f..5c1f5b0 100644 --- a/neural/ores.lua +++ b/neural/ores.lua @@ -90,12 +90,13 @@ local function update() for _, b in pairs(blocks) do if not projecting[b.id] then projecting[b.id] = b - b.box = canvas.addBox( - pos.x - offset.x + b.x + -(pos.x % 1) + .25, - pos.y - offset.y + b.y + -(pos.y % 1) + .25, - pos.z - offset.z + b.z + -(pos.z % 1) + .25, - .5, .5, .5, targets[b.name]) + b.box = canvas.addFrame({ + pos.x - offset.x + b.x + -(pos.x % 1) + .5, + pos.y - offset.y + b.y + -(pos.y % 1) + .5, + pos.z - offset.z + b.z + -(pos.z % 1) + .5, + }) b.box.setDepthTested(false) + b.box.addItem({ 0, 0 }, b.name, b.damage, 2) end end @@ -125,4 +126,4 @@ parallel.waitForAny( update ) -canvas.clear() +canvas.clear() \ No newline at end of file