summaryrefslogtreecommitdiff
path: root/melon.lua
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-04-08 14:29:08 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2015-04-08 14:29:08 -0700
commit70ddf360c90af147ad992b2b1284676c3ca8db45 (patch)
treec9999ebf255fea2cb851d8fc3836a02cfe671ff2 /melon.lua
parentea42b966ff006d6648cbd5edd3f690d634d801b0 (diff)
Tweak melon plant hitbox, remove unneeded texture.
Diffstat (limited to 'melon.lua')
-rw-r--r--melon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/melon.lua b/melon.lua
index 40cccc4..22b7196 100644
--- a/melon.lua
+++ b/melon.lua
@@ -52,7 +52,7 @@ minetest.register_node("crops:melon_plant_" .. stage , {
drop = "crops:melon_seed",
selection_box = {
type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (((3 * stage) + 1) / 16), 0.5}
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (((math.min(stage, 4)) + 1) / 5), 0.5}
}
})
end
@@ -61,7 +61,7 @@ minetest.register_node("crops:melon_plant_5_attached", {
visual = "mesh",
mesh = "crops_plant_extra_face.obj",
description = "melon plant",
- tiles = { "crops_melon_stem.png", "crops_melon_plant_5_attached.png" },
+ tiles = { "crops_melon_stem.png", "crops_melon_plant_4.png" },
drawtype = "mesh",
paramtype2 = "facedir",
sunlight_propagates = true,