mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 02:40:29 +01:00
Fix infinite energy with supply converter
This commit is contained in:
parent
5382a88aef
commit
4ac36e9d27
@ -371,7 +371,7 @@ local function switching_station_timeout_count(pos, tier)
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local timeout = meta:get_int(tier.."_EU_timeout")
|
local timeout = meta:get_int(tier.."_EU_timeout")
|
||||||
if timeout <= 0 then
|
if timeout <= 0 then
|
||||||
--meta:set_int(tier.."_EU_input", 0) -- Not needed anymore
|
meta:set_int(tier.."_EU_input", 0) -- Not needed anymore <-- actually, it is for supply converter
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
meta:set_int(tier.."_EU_timeout", timeout - 1)
|
meta:set_int(tier.."_EU_timeout", timeout - 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user