summaryrefslogtreecommitdiff
path: root/mesecons_detector
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_detector')
-rw-r--r--mesecons_detector/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua
index e589676..084535b 100644
--- a/mesecons_detector/init.lua
+++ b/mesecons_detector/init.lua
@@ -182,10 +182,10 @@ minetest.register_node("mesecons_detector:node_detector_off", {
on_receive_fields = node_detector_on_receive_fields,
after_place_node = function (pos, placer)
local placer_pos = placer:getpos()
-
+
--correct for the player's height
if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end
-
+
--correct for 6d facedir
if placer_pos then
local dir = {
@@ -217,10 +217,10 @@ minetest.register_node("mesecons_detector:node_detector_on", {
on_receive_fields = node_detector_on_receive_fields,
after_place_node = function (pos, placer)
local placer_pos = placer:getpos()
-
+
--correct for the player's height
if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end
-
+
--correct for 6d facedir
if placer_pos then
local dir = {