summaryrefslogtreecommitdiff
path: root/land_title_register.lua
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-03-03 05:47:30 +0100
committerSokomine <wegwerf@anarres.dyndns.org>2015-03-03 05:47:30 +0100
commitfa1efe2a290f3549d7f2ef61fe62a4f41e5caa2f (patch)
tree57e837c8b0aa72230e66504e55fe2b768fe67540 /land_title_register.lua
parent2c9fe6cb869b1d7e753e734717b44b9efb4dce84 (diff)
fixed a crash with markers beeing placed in one line
Diffstat (limited to 'land_title_register.lua')
-rw-r--r--land_title_register.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/land_title_register.lua b/land_title_register.lua
index 9c456a4..4156acb 100644
--- a/land_title_register.lua
+++ b/land_title_register.lua
@@ -29,7 +29,7 @@ minetest.register_tool( "markers:land_title_register",
local name = placer:get_player_name();
-- the position is what we're actually looking for
- local pos = minetest.get_pointed_thing_position( pointed_thing, 0 ); --under );
+ local pos = minetest.get_pointed_thing_position( pointed_thing, false ); -- not above
if( not( pos ) or not( pos.x )) then
minetest.chat_send_player( name, "Position not found.");
@@ -50,7 +50,7 @@ minetest.register_tool( "markers:land_title_register",
end
local name = placer:get_player_name();
- local pos = minetest.get_pointed_thing_position( pointed_thing, under );
+ local pos = minetest.get_pointed_thing_position( pointed_thing, false ); -- not above
if( not( pos ) or not( pos.x )) then
minetest.chat_send_player( name, "Position not found.");