summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-06-23 22:47:53 -0500
committerBrandon <brandon@bremaweb.com>2013-06-23 22:47:53 -0500
commit310e367c564f91f2b20ebe7cf3bfde6c17ec3b05 (patch)
treef9d798b3855d6dae2eec575dc062e36db6b4ea08
parenta4edeede2bc1c9f71dd1390f256c62a6ac12e406 (diff)
fix show area
-rw-r--r--chatcommands.lua1
-rw-r--r--init.lua4
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},