From 2c891e6c25753515ae15f9a453ae37a6cc65921b Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 23 Jun 2024 22:11:39 -0400 Subject: [PATCH] fix https://github.com/mt-mods/xcompat/issues/29 - restore proper check for voxelgarden --- settings.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/settings.lua b/settings.lua index 62b4c14..f84fd29 100644 --- a/settings.lua +++ b/settings.lua @@ -50,4 +50,8 @@ moretrees.grow_legacy_saplings = stg:get_bool("moretrees.grow_legacy_saplings", moretrees.decay_leaves_as_items = stg:get_bool("moretrees.decay_leaves_as_items", false) -- this is an internal setting for games that only have one type of planks -moretrees.enable_planks = xcompat.gameid ~= "voxelgarden" \ No newline at end of file +if type(minetest.get_game_info) == "function" then + moretrees.enable_planks = minetest.get_game_info().id~="voxelgarden" +else + moretrees.enable_planks = true +end \ No newline at end of file