Skip to content

Commit

Permalink
Replace vines with air if they've been disabled for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanL2 committed Dec 6, 2021
1 parent 1d3751d commit 2e4e4a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vines/init.lua
Expand Up @@ -381,6 +381,9 @@ if enable_roots ~= false then
rarity = rarity_roots,
-- humidity_min = 0.4,
})
else
minetest.register_alias('vines:root_middle', 'air')
minetest.register_alias('vines:root_end', 'air')
end

if enable_standard ~= false then
Expand All @@ -401,6 +404,9 @@ if enable_standard ~= false then
rarity = rarity_standard,
-- humidity_min = 0.7,
})
else
minetest.register_alias('vines:vine_middle', 'air')
minetest.register_alias('vines:vine_end', 'air')
end

if enable_side ~= false then
Expand All @@ -421,6 +427,9 @@ if enable_side ~= false then
rarity = rarity_side,
-- humidity_min = 0.4,
})
else
minetest.register_alias('vines:side_middle', 'air')
minetest.register_alias('vines:side_end', 'air')
end

if enable_jungle ~= false then
Expand All @@ -447,6 +456,9 @@ if enable_jungle ~= false then
rarity = rarity_jungle,
-- humidity_min = 0.2,
})
else
minetest.register_alias('vines:jungle_middle', 'air')
minetest.register_alias('vines:jungle_end', 'air')
end

if enable_willow ~= false then
Expand All @@ -465,6 +477,9 @@ if enable_willow ~= false then
rarity = rarity_willow,
-- humidity_min = 0.5
})
else
minetest.register_alias('vines:willow_middle', 'air')
minetest.register_alias('vines:willow_end', 'air')
end

print("[Vines] Loaded")

0 comments on commit 2e4e4a2

Please sign in to comment.