From 70ddf360c90af147ad992b2b1284676c3ca8db45 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 8 Apr 2015 14:29:08 -0700 Subject: Tweak melon plant hitbox, remove unneeded texture. --- melon.lua | 4 ++-- textures/crops_melon_plant_4.png | Bin 721 -> 820 bytes textures/crops_melon_plant_5_attached.png | Bin 820 -> 0 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 textures/crops_melon_plant_5_attached.png 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, diff --git a/textures/crops_melon_plant_4.png b/textures/crops_melon_plant_4.png index f4f234c..b9866cc 100644 Binary files a/textures/crops_melon_plant_4.png and b/textures/crops_melon_plant_4.png differ diff --git a/textures/crops_melon_plant_5_attached.png b/textures/crops_melon_plant_5_attached.png deleted file mode 100644 index bfbaa02..0000000 Binary files a/textures/crops_melon_plant_5_attached.png and /dev/null differ -- cgit v1.2.3