Fix bugs for injector and electric cable

This commit is contained in:
Joachim Stolberg 2021-10-01 14:26:17 +02:00
parent 76cf6abeea
commit 90815845f9
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ function NodeStates:start(pos, nvm)
end end
start_timer_delayed(pos, self.cycle_time) 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) self.quick_start(pos, 0)
end end
return true return true

View File

@ -178,7 +178,7 @@ minetest.register_craft({
}) })
techage.ElectricCable = Cable 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 for idx, color in ipairs({ "white", "grey", "black", "brown", "yellow", "red", "dark_green", "blue" }) do