Skip to content

Commit

Permalink
fix mt-mods/xcompat#29 - restore proper check for voxelgarden
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Jun 24, 2024
1 parent 517c9dc commit 2c891e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
if type(minetest.get_game_info) == "function" then
moretrees.enable_planks = minetest.get_game_info().id~="voxelgarden"
else
moretrees.enable_planks = true
end

0 comments on commit 2c891e6

Please sign in to comment.