mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Print error message if worldedit_gui was found
This commit is contained in:
parent
0925cfc788
commit
8db61c7d44
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue