From fa1efe2a290f3549d7f2ef61fe62a4f41e5caa2f Mon Sep 17 00:00:00 2001 From: Sokomine Date: Tue, 3 Mar 2015 05:47:30 +0100 Subject: fixed a crash with markers beeing placed in one line --- land_title_register.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'land_title_register.lua') 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."); -- cgit v1.2.3