1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-26 18:50:23 +01:00

adapt plantlike leaves' scale for current engine

This commit is contained in:
Vanessa Ezekowitz 2017-02-10 09:48:20 -05:00
parent 471a11f92d
commit f83f167d18

View File

@ -31,7 +31,7 @@ local moretrees_plantlike_leaves_visual_scale = 1
if moretrees.plantlike_leaves then
moretrees_new_leaves_drawtype = "plantlike"
moretrees_plantlike_leaves_visual_scale = 1.189
moretrees_plantlike_leaves_visual_scale = math.sqrt(2)
end
-- redefine default leaves to handle plantlike and/or leaf decay options
@ -40,7 +40,7 @@ if moretrees.plantlike_leaves then
minetest.override_item("default:leaves", {
inventory_image = minetest.inventorycube("default_leaves.png"),
drawtype = "plantlike",
visual_scale = 1.189
visual_scale = math.sqrt(2)
})
else
minetest.override_item("default:leaves", {
@ -54,7 +54,7 @@ if moretrees.plantlike_leaves then
minetest.override_item("default:jungleleaves", {
inventory_image = minetest.inventorycube("default_jungleleaves.png"),
drawtype = "plantlike",
visual_scale = 1.189
visual_scale = math.sqrt(2)
})
else
minetest.override_item("default:jungleleaves", {