diff options
author | Bremaweb <brandon@bremaweb.com> | 2014-03-27 13:27:04 -0500 |
---|---|---|
committer | Bremaweb <brandon@bremaweb.com> | 2014-03-27 13:27:04 -0500 |
commit | 8d5160c494b90a8bbc601b82249ef1636baa98ae (patch) | |
tree | 9d0055ffb76178fb0106959013f4422fe6e39b6e | |
parent | c554091b4329a5d8f44a317281e2e19e3c397722 (diff) | |
parent | 79c4d0535c125234c75b3c8e53978527f47eedbf (diff) |
Merge pull request #8 from heavygale/patch-1
dynamic size for landrush:showarea
-rw-r--r-- | init.lua | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -79,9 +79,19 @@ minetest.register_entity("landrush:showarea",{ hp_max = 1, physical = true, weight = 0, - collisionbox = {-8,-8,-8,8,8,8}, + collisionbox = { + landrush.config:get("chunkSize")/-2, + landrush.config:get("chunkSize")/-2, + landrush.config:get("chunkSize")/-2, + landrush.config:get("chunkSize")/2, + landrush.config:get("chunkSize")/2, + landrush.config:get("chunkSize")/2, + }, visual = "mesh", - visual_size = {x=16.1, y=16.1}, + visual_size = { + x=landrush.config:get("chunkSize")+0.1, + y=landrush.config:get("chunkSize")+0.1 + }, mesh = "landrush_showarea.x", 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 |