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