summaryrefslogtreecommitdiff
path: root/node_defs.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-08-15 16:59:11 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-08-15 17:13:18 -0400
commit2aad14a8836260516320acb0c4376e0eb3b100ab (patch)
tree7b278cce4be8eebc8e0ba0df5632a50146ff6705 /node_defs.lua
parentf59fd56257d204e65fbde95f1ecdc8d889209f1f (diff)
fix bad texture refs on saplings
Diffstat (limited to 'node_defs.lua')
-rw-r--r--node_defs.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/node_defs.lua b/node_defs.lua
index 6c6701a..681736d 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -66,12 +66,15 @@ for i in ipairs(moretrees.treelist) do
local fruitdesc = moretrees.treelist[i][4]
local selbox = moretrees.treelist[i][5]
local vscale = moretrees.treelist[i][6]
- local saptext = moretrees.treelist[i][7] or "moretrees_"..treename.."_sapling.png"
+
+ local saptex = moretrees.treelist[i][7]
if treename ~= "jungletree" -- the default game provides jungle tree, acacia, and pine trunk/planks nodes.
and treename ~= "acacia"
and treename ~= "pine" then
+ saptex = "moretrees_"..treename.."_sapling.png"
+
minetest.register_node("moretrees:"..treename.."_trunk", {
description = S(treedesc.." Trunk"),
tiles = {
@@ -214,8 +217,8 @@ for i in ipairs(moretrees.treelist) do
minetest.register_node("moretrees:"..treename.."_sapling_ongen", {
description = S(treedesc.." Sapling"),
drawtype = "plantlike",
- tiles = {saptext},
- inventory_image = saptext,
+ tiles = {saptex},
+ inventory_image = saptex,
paramtype = "light",
paramtype2 = "waving",
walkable = false,
@@ -290,7 +293,7 @@ for color = 1, #jungleleaves do
tiles = {"moretrees_jungletree_leaves_"..jungleleaves[color]..".png"},
inventory_image = moretrees_leaves_inventory_image,
paramtype = "light",
- groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = 3 },
+ groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = moretrees.leafdecay_radius },
drop = {
max_items = 1,
items = {
@@ -318,7 +321,7 @@ minetest.register_node("moretrees:fir_leaves_bright", {
tiles = { "moretrees_fir_leaves_bright.png" },
inventory_image = moretrees_leaves_inventory_image,
paramtype = "light",
- groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = 3 },
+ groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = moretrees.leafdecay_radius },
drop = {
max_items = 1,
items = {