From 8db61c7d44977e283177962149da21436ab244b7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 3 Aug 2017 19:21:31 +0200 Subject: [PATCH] Print error message if worldedit_gui was found --- mods/HUD/mcl_inventory/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mods/HUD/mcl_inventory/init.lua b/mods/HUD/mcl_inventory/init.lua index 37cc7e818..4c07c0833 100644 --- a/mods/HUD/mcl_inventory/init.lua +++ b/mods/HUD/mcl_inventory/init.lua @@ -3,6 +3,15 @@ mcl_inventory = {} local show_armor = false if minetest.get_modpath("3d_armor") ~= nil then show_armor = true end + +-- Sadly, using worldedit_gui breaks the inventory, making it incompatible. +-- Print error message if this mod was found. +-- FIXME: Find a way to make worldedit_gui compatble. +if minetest.get_modpath("worldedit_gui") then + minetest.log("error", "The mod “worldedit_gui” is enabled. This mod is known to break the inventory in MineClone 2. Please disable worldedit_gui and restart the game.") +end + + -- Returns a single itemstack in the given inventory to the main inventory, or drop it when there's no space left local function return_item(itemstack, dropper, pos, inv) if dropper:is_player() then @@ -166,3 +175,4 @@ end) if minetest.setting_getbool("creative_mode") then dofile(minetest.get_modpath("mcl_inventory").."/creative.lua") end +