summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2018-09-07 20:38:47 -0500
committercheapie <no-email-for-you@example.com>2018-09-07 20:38:47 -0500
commitc82ce0aadd9f1215c9cc822a7e01220a3ed1dec6 (patch)
treea90718a989e4c27a9b15b918c2bd96d27ebe7260
parentb1419ed0906cfc912add7f53ac4dc67d64becef4 (diff)
downloadfirealarm-c82ce0aadd9f1215c9cc822a7e01220a3ed1dec6.tar
firealarm-c82ce0aadd9f1215c9cc822a7e01220a3ed1dec6.tar.gz
firealarm-c82ce0aadd9f1215c9cc822a7e01220a3ed1dec6.tar.bz2
firealarm-c82ce0aadd9f1215c9cc822a7e01220a3ed1dec6.tar.xz
firealarm-c82ce0aadd9f1215c9cc822a7e01220a3ed1dec6.zip
Reduce smoke detector detection radius
-rw-r--r--firealarm_smokedetector/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/firealarm_smokedetector/init.lua b/firealarm_smokedetector/init.lua
index 3cd2d60..ec08e78 100644
--- a/firealarm_smokedetector/init.lua
+++ b/firealarm_smokedetector/init.lua
@@ -92,8 +92,8 @@ minetest.register_abm({
action = function(pos,node)
local devInfo = firealarm.getDevInfo("signaling",pos)
if not devInfo then return end
- local minp = vector.add(pos,vector.new(-10,-10,-10))
- local maxp = vector.add(pos,vector.new(10,0,10))
+ local minp = vector.add(pos,vector.new(-4,-10,-4))
+ local maxp = vector.add(pos,vector.new(4,0,4))
local fire = false
local fire_nodes = {["fire:permanent_flame"] = true,["fire:basic_flame"] = true}
for x=minp.x,maxp.x,1 do