From 56e96b2593817eb77fcb51e4a81c80f4df6bb0c7 Mon Sep 17 00:00:00 2001 From: Tim <t4im@users.noreply.github.com> Date: Fri, 30 Jan 2015 05:16:41 +0100 Subject: [PATCH] add sawdust and tree/wood grindings with arcacia tree for dye and provide a better alternative rubbertree->latex path that yields the same as the tree tap, but requires more machine work --- technic/machines/supply_converter.lua | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/technic/machines/supply_converter.lua b/technic/machines/supply_converter.lua index ccfb9b0..6b0da99 100644 --- a/technic/machines/supply_converter.lua +++ b/technic/machines/supply_converter.lua @@ -35,7 +35,12 @@ ..input * remain.." "..to..")") else meta:set_string("infotext", S("%s Has Bad Cabling"):format(machine_name)) - meta:set_int(to.."_EU_supply", 0) + if to then + meta:set_int(to.."_EU_supply", 0) + end + if from then + meta:set_int(from.."_EU_demand", 0) + end return end @@ -55,7 +60,7 @@ fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, }, on_construct = function(pos) - local meta = minetest.env:get_meta(pos) + local meta = minetest.get_meta(pos) meta:set_string("infotext", S("Supply Converter")) meta:set_float("active", false) end, -- Gitblit v1.8.0