disable worldedit_brush mod instead of throwing error

This commit is contained in:
codexp 2018-03-23 23:45:06 +01:00
parent 3322ef90c4
commit d71e438a3d
1 changed files with 4 additions and 0 deletions

View File

@ -1,10 +1,14 @@
if minetest.raycast == nil then
print('[MOD] worldedit_brush is not compatible with your game, so it won\'t be loaded!')
return
--[[
error(
"================================\n"..
"This mod requires a suitable version of 0.4.16-dev/0.5.0-dev\n"..
"that includes support for minetest.raycast() [since 7th July 2017]\n"..
"================================\n"
)
]]
end
local BRUSH_MAX_DIST = 150