summaryrefslogtreecommitdiff
path: root/mesecons_gates
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2013-06-05 10:35:36 -0700
committerAnthony <azhang9@gmail.com>2013-06-05 10:35:36 -0700
commit9a9df6cabf54a07e0ea29e63ba6468fd3ee633aa (patch)
treed4180454279a73dc29606c2b4bb76d3a5afa30d0 /mesecons_gates
parentfa0cf15cd97eaa1527bdd87047d231885ec3428d (diff)
parentedc10dac472cf89818fed4c30e7b12cb9275fb30 (diff)
downloadmesecons-9a9df6cabf54a07e0ea29e63ba6468fd3ee633aa.tar
mesecons-9a9df6cabf54a07e0ea29e63ba6468fd3ee633aa.tar.gz
mesecons-9a9df6cabf54a07e0ea29e63ba6468fd3ee633aa.tar.bz2
mesecons-9a9df6cabf54a07e0ea29e63ba6468fd3ee633aa.tar.xz
mesecons-9a9df6cabf54a07e0ea29e63ba6468fd3ee633aa.zip
Merge pull request #106 from Novatux/heat
Add an ABM function which resets heat to 0, ...
Diffstat (limited to 'mesecons_gates')
-rw-r--r--mesecons_gates/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua
index 162c7d8..37b046f 100644
--- a/mesecons_gates/init.lua
+++ b/mesecons_gates/init.lua
@@ -47,7 +47,7 @@ function set_gate(pos, on)
local meta = minetest.env:get_meta(pos)
if on ~= gate_state(pos) then
yc_heat(meta)
- minetest.after(0.5, yc_cool, meta)
+ --minetest.after(0.5, yc_cool, meta)
if yc_overheat(meta) then
pop_gate(pos)
else
@@ -112,13 +112,13 @@ for _, gate in ipairs(gates) do
drop = nodename.."_off"
nodename = nodename.."_"..onoff
description = "You hacker you!"
- groups = {dig_immediate=2, not_in_creative_inventory=1}
+ groups = {dig_immediate=2, not_in_creative_inventory=1, overheat = 1}
else
onoff = "off"
drop = nil
nodename = nodename.."_"..onoff
description = gate.name.." Gate"
- groups = {dig_immediate=2}
+ groups = {dig_immediate=2, overheat = 1}
end
tiles = "jeija_microcontroller_bottom.png^"..