mirror of
https://codeberg.org/tenplus1/bonemeal.git
synced 2025-01-08 01:00:25 +01:00
if no meta dont change bush
This commit is contained in:
parent
10dbedd1e8
commit
6d21268470
8
mods.lua
8
mods.lua
@ -336,12 +336,10 @@ if minetest.get_modpath("bushes_classic") then
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local bush_name = meta:get_string("bush_type")
|
local bush_name = meta:get_string("bush_type")
|
||||||
|
|
||||||
-- default if no meta
|
-- only change if meta found
|
||||||
if not bush_name or bush_name == "" then
|
if meta and bush_name then
|
||||||
bush_name = "strawberry"
|
minetest.swap_node(pos, {name = "bushes:" .. bush_name .. "_bush"})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.swap_node(pos, {name = "bushes:" .. bush_name .. "_bush"})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
bonemeal:add_sapling({
|
bonemeal:add_sapling({
|
||||||
|
Loading…
Reference in New Issue
Block a user