mirror of
https://notabug.org/TenPlus1/bonemeal.git
synced 2024-12-05 03:13:43 +01:00
add bush_classic default if no meta found
This commit is contained in:
parent
34e8c4a106
commit
10dbedd1e8
7
mods.lua
7
mods.lua
@ -334,7 +334,12 @@ if minetest.get_modpath("bushes_classic") then
|
||||
local function grow_bush(pos)
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
local bush_name = meta:get_string("bush_type") or "strawberry"
|
||||
local bush_name = meta:get_string("bush_type")
|
||||
|
||||
-- default if no meta
|
||||
if not bush_name or bush_name == "" then
|
||||
bush_name = "strawberry"
|
||||
end
|
||||
|
||||
minetest.swap_node(pos, {name = "bushes:" .. bush_name .. "_bush"})
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user