From 5fca3e4322f8829c9ef49e862b8b12ade759fc49 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 25 Oct 2021 15:18:03 +0100 Subject: [PATCH] Fix bonemeal mod detection to look for the global bonemeal, not whether the bonemeal mod name has been loaded --- CHANGELOG.md | 1 + worldeditadditions_commands/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6c3891..b8a5bac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ Note to self: See the bottom of this file for the release template text. - Add `holly` ⇒ `hollytree:sapling` - `//replacemix`: Improve error handling to avoid crashes (thanks, Jonathon for reporting via Discord!) - Cloud wand: Improve chat message text + - Fix `bonemeal` mod detection to look for the global `bonemeal`, not whether the `bonemeal` mod name has been loaded ## v1.12: The selection tools update (26th June 2021) diff --git a/worldeditadditions_commands/init.lua b/worldeditadditions_commands/init.lua index 491669d..62f59f8 100644 --- a/worldeditadditions_commands/init.lua +++ b/worldeditadditions_commands/init.lua @@ -55,7 +55,7 @@ dofile(we_c.modpath.."/commands/extra/saplingaliases.lua") dofile(we_c.modpath.."/commands/extra/basename.lua") -- Don't registry the //bonemeal command if the bonemeal mod isn't present -if minetest.get_modpath("bonemeal") then +if minetest.global_exists("bonemeal") then dofile(we_c.modpath.."/commands/bonemeal.lua") dofile(we_c.modpath.."/commands/forest.lua") else