From 90815845f98e8d907a0106d5145563eca01223b5 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 1 Oct 2021 14:26:17 +0200 Subject: [PATCH] Fix bugs for injector and electric cable --- basis/node_states.lua | 2 +- power/electric_cable.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/node_states.lua b/basis/node_states.lua index 5c73ee2..9e76c89 100644 --- a/basis/node_states.lua +++ b/basis/node_states.lua @@ -274,7 +274,7 @@ function NodeStates:start(pos, nvm) end start_timer_delayed(pos, self.cycle_time) - if self.quick_start then + if self.quick_start and state == STOPPED then self.quick_start(pos, 0) end return true diff --git a/power/electric_cable.lua b/power/electric_cable.lua index 05cccb5..7840982 100644 --- a/power/electric_cable.lua +++ b/power/electric_cable.lua @@ -178,7 +178,7 @@ minetest.register_craft({ }) techage.ElectricCable = Cable -techage.ELE1_MAX_CABLE_LENGTH = ELE1_MAX_CABLE_LENGTH +techage.ELE1_MAX_CABLE_LENGTH = ELE1_MAX_CABLE_LENGHT for idx, color in ipairs({ "white", "grey", "black", "brown", "yellow", "red", "dark_green", "blue" }) do