From 46ef36663b597efa42749d2d5a61b74ae93c272b Mon Sep 17 00:00:00 2001 From: kilbith Date: Mon, 21 Sep 2015 13:30:18 +0200 Subject: [PATCH] Work Table : support oresplus nodes --- depends.txt | 1 + worktable.lua | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/depends.txt b/depends.txt index a4b5d1f..8ca3bd9 100644 --- a/depends.txt +++ b/depends.txt @@ -2,3 +2,4 @@ default doors xpanes bucket +oresplus? diff --git a/worktable.lua b/worktable.lua index 5b2a662..d65cc79 100644 --- a/worktable.lua +++ b/worktable.lua @@ -14,10 +14,12 @@ local nodes = { -- Nodes allowed to be cut. "xdecor:coalstone_tile", "xdecor:desertstone_tile", "xdecor:stone_rune", "xdecor:stone_tile", "xdecor:hard_clay", "xdecor:packed_ice", "xdecor:moonbrick", - "xdecor:woodframed_glass", "xdecor:wood_tile" + "xdecor:woodframed_glass", "xdecor:wood_tile", + + "oresplus:emerald_block", "oresplus:glowstone", } -local def = { -- Nodebox name, anzhal, definition. +local def = { -- Nodebox name, yield, definition. {"nanoslab", 16, {-.5,-.5,-.5,0,-.4375,0}}, {"micropanel", 16, {-.5,-.5,-.5,.5,-.4375,0}}, {"microslab", 8, {-.5,-.5,-.5,.5,-.4375,.5}}, @@ -90,9 +92,8 @@ end function worktable.dig(pos, _) local inv = minetest.get_meta(pos):get_inventory() if not inv:is_empty("input") or not inv:is_empty("hammer") or not - inv:is_empty("tool") or not inv:is_empty("storage") then - return false - end + inv:is_empty("tool") or not inv:is_empty("storage") then + return false end return true end @@ -194,7 +195,7 @@ end local function shady(shape) if shape == "stair" or shape == "slab" or shape == "innerstair" or - shape == "outerstair" then return false end + shape == "outerstair" then return false end return true end