mirror of
https://github.com/mt-mods/moretrees.git
synced 2024-12-27 03:00:24 +01:00
adapt plantlike leaves' scale for current engine
This commit is contained in:
parent
471a11f92d
commit
f83f167d18
@ -31,7 +31,7 @@ local moretrees_plantlike_leaves_visual_scale = 1
|
|||||||
|
|
||||||
if moretrees.plantlike_leaves then
|
if moretrees.plantlike_leaves then
|
||||||
moretrees_new_leaves_drawtype = "plantlike"
|
moretrees_new_leaves_drawtype = "plantlike"
|
||||||
moretrees_plantlike_leaves_visual_scale = 1.189
|
moretrees_plantlike_leaves_visual_scale = math.sqrt(2)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- redefine default leaves to handle plantlike and/or leaf decay options
|
-- 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", {
|
minetest.override_item("default:leaves", {
|
||||||
inventory_image = minetest.inventorycube("default_leaves.png"),
|
inventory_image = minetest.inventorycube("default_leaves.png"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.189
|
visual_scale = math.sqrt(2)
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
minetest.override_item("default:leaves", {
|
minetest.override_item("default:leaves", {
|
||||||
@ -54,7 +54,7 @@ if moretrees.plantlike_leaves then
|
|||||||
minetest.override_item("default:jungleleaves", {
|
minetest.override_item("default:jungleleaves", {
|
||||||
inventory_image = minetest.inventorycube("default_jungleleaves.png"),
|
inventory_image = minetest.inventorycube("default_jungleleaves.png"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.189
|
visual_scale = math.sqrt(2)
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
minetest.override_item("default:jungleleaves", {
|
minetest.override_item("default:jungleleaves", {
|
||||||
|
Loading…
Reference in New Issue
Block a user