Fixed coordinate handling.
This commit is contained in:
parent
4da27b664a
commit
3c0866e888
@ -276,8 +276,11 @@ minetest.register_chatcommand("mayedit_remote", {
|
|||||||
description = "lists the people who may edit a remote location",
|
description = "lists the people who may edit a remote location",
|
||||||
privs = {interact=true},
|
privs = {interact=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
local pos ={}
|
local pos = minetest.string_to_pos(param)
|
||||||
pos.x, pos.y, pos.z = string.match(param, "^([%d.-]+)[, ] *([%d.-]+)[, ] *([%d.-]+)$")
|
if not pos then
|
||||||
|
return minetest.chat_send_player(name, "Invalid coordinates.")
|
||||||
|
end
|
||||||
|
pos.y = pos.y + 0.5
|
||||||
-- pos.y = pos.y + .5 --compensated for Minetest's incorrect y coordinate for player objects
|
-- pos.y = pos.y + .5 --compensated for Minetest's incorrect y coordinate for player objects
|
||||||
local mayedit = landclaim_0gb_us.get_owner(pos)
|
local mayedit = landclaim_0gb_us.get_owner(pos)
|
||||||
if mayedit then
|
if mayedit then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user