summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarter Kolwey <cheapiephp@gmail.com>2016-05-17 14:54:36 -0500
committerJeija <norrepli@gmail.com>2016-07-09 11:17:08 +0200
commitacd41b57733bee4c61729f4ec1ce1742402b59d8 (patch)
treed3f714e01d48938fbb5e2cb7f5689c6f1a80de65
parentf9f7600017967672ec28ecf139d9d520d64fcef0 (diff)
downloadmesecons-acd41b57733bee4c61729f4ec1ce1742402b59d8.tar
mesecons-acd41b57733bee4c61729f4ec1ce1742402b59d8.tar.gz
mesecons-acd41b57733bee4c61729f4ec1ce1742402b59d8.tar.bz2
mesecons-acd41b57733bee4c61729f4ec1ce1742402b59d8.tar.xz
mesecons-acd41b57733bee4c61729f4ec1ce1742402b59d8.zip
Don't bother checking if a node can overheat before cooling it
-rw-r--r--mesecons/services.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/mesecons/services.lua b/mesecons/services.lua
index 5d0f81e..343410a 100644
--- a/mesecons/services.lua
+++ b/mesecons/services.lua
@@ -87,10 +87,6 @@ end
mesecon.queue:add_function("cooldown", function (pos)
- if minetest.get_item_group(minetest.get_node(pos).name, "overheat") == 0 then
- return -- node has been moved, this one does not use overheating - ignore
- end
-
local meta = minetest.get_meta(pos)
local heat = meta:get_int("heat")