From 6731db14e580ddccace186f5a8ac03dad0661e0c Mon Sep 17 00:00:00 2001 From: Gábriel <38207624+gabriel1379@users.noreply.github.com> Date: Sun, 07 Jul 2024 18:53:15 +0200 Subject: [PATCH] Add compressor recipes for nether racks (#644) --- technic/register.lua | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/technic/register.lua b/technic/register.lua index 0b55282..6a587ea 100644 --- a/technic/register.lua +++ b/technic/register.lua @@ -3,6 +3,7 @@ technic.receiver = "RE" technic.producer = "PR" +technic.producer_receiver = "PR_RE" technic.battery = "BA" technic.machines = {} @@ -11,8 +12,7 @@ function technic.register_tier(tier, description) - technic.machines[tier] = {} - technic.cables[tier] = {} + technic.machines[tier] = {} end function technic.register_machine(tier, nodename, machine_type) @@ -44,6 +44,10 @@ -- Wear down a tool depending on the remaining charge. function technic.set_RE_wear(itemstack, item_load, max_load) + local def = minetest.registered_items[itemstack:get_name()] + if (def.wear_represents or "mechanical_wear") ~= "technic_RE_charge" then + return itemstack + end local temp if item_load == 0 then temp = 0 -- Gitblit v1.8.0