From 310e367c564f91f2b20ebe7cf3bfde6c17ec3b05 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sun, 23 Jun 2013 22:47:53 -0500 Subject: fix show area --- chatcommands.lua | 1 + init.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chatcommands.lua b/chatcommands.lua index 15500c7..e40c6ae 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -129,6 +129,7 @@ minetest.register_chatcommand("showarea", { -- if owner then --if landrush.can_interact(name, pos) then local entpos = landrush.get_chunk_center(pos) + entpos.y = (pos.y-1) minetest.env:add_entity(entpos, "landrush:showarea") --else -- minetest.chat_send_player(name, "This area is owned by "..owner) diff --git a/init.lua b/init.lua index b455984..e7fd63c 100644 --- a/init.lua +++ b/init.lua @@ -305,9 +305,9 @@ minetest.register_entity("landrush:showarea",{ weight = 0, collisionbox = {-8,-8,-8,8,8,8}, visual = "mesh", - visual_size = {x=16.1, y=120.1}, + visual_size = {x=16.1, y=16.1}, mesh = "landrush_showarea.x", - textures = {"landrush_showarea.png", "landrush_showarea.png", "landrush_showarea.png", "landrush_showarea.png", "landrush_showarea.png", "landrush_showarea.png"}, -- number of required textures depends on visual + textures = {nil, nil, "landrush_showarea.png", "landrush_showarea.png", "landrush_showarea.png", "landrush_showarea.png"}, -- number of required textures depends on visual colors = {}, -- number of required colors depends on visual spritediv = {x=1, y=1}, initial_sprite_basepos = {x=0, y=0}, -- cgit v1.2.3