From 6154a04c00d7650664b78e2bca37631ae3778411 Mon Sep 17 00:00:00 2001 From: David Leal <halfpacho@gmail.com> Date: Wed, 24 Jun 2020 21:14:04 +0200 Subject: [PATCH] Remove node_ownership support, cleanup (#560) --- technic/machines/HV/nuclear_reactor.lua | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/machines/HV/nuclear_reactor.lua b/technic/machines/HV/nuclear_reactor.lua index 3377710..c6ed4df 100644 --- a/technic/machines/HV/nuclear_reactor.lua +++ b/technic/machines/HV/nuclear_reactor.lua @@ -257,7 +257,7 @@ local accum_badness = meta:get_int("structure_accumulated_badness") if badness == 0 then if accum_badness ~= 0 then - meta:set_int("structure_accumulated_badness", accum_badness - 4) + meta:set_int("structure_accumulated_badness", math.max(accum_badness - 4, 0)) siren_clear(pos, meta) end else @@ -455,7 +455,7 @@ technic_run = run, technic_on_disable = function(pos, node) local timer = minetest.get_node_timer(pos) - timer:start(1) + timer:start(1) end, on_timer = function(pos, node) local meta = minetest.get_meta(pos) -- Gitblit v1.8.0