Skip to content

Commit

Permalink
Make mypaint be an optional dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sieb committed Apr 5, 2016
1 parent 3c8a5af commit c6e529a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ dofile(minetest.get_modpath("myfences").."/picket.lua")
dofile(minetest.get_modpath("myfences").."/privacy.lua")
dofile(minetest.get_modpath("myfences").."/garden.lua")
dofile(minetest.get_modpath("myfences").."/post.lua")
dofile(minetest.get_modpath("myfences").."/paint.lua")
if mypaint ~= nil then
dofile(minetest.get_modpath("myfences").."/paint.lua")
end

minetest.register_craftitem("myfences:board", {
description = "Default Board",
Expand Down

0 comments on commit c6e529a

Please sign in to comment.