Added check for wool dependancy

This commit is contained in:
Fixer 2017-03-04 18:21:40 +02:00 committed by GitHub
parent 6455e192ba
commit 9394b04b68

View File

@ -77,6 +77,8 @@ end
-- wool registrations -- wool registrations
if minetest.get_modpath("wool") then
local colorlist = { local colorlist = {
{"white", "White"}, {"white", "White"},
{"grey", "Grey"}, {"grey", "Grey"},
@ -102,8 +104,10 @@ for i in ipairs(colorlist) do
stairsplus:register_all("wool", color, "wool:"..color, { stairsplus:register_all("wool", color, "wool:"..color, {
description = colordesc.." Wool", description = colordesc.." Wool",
tiles = {"wool_"..color..".png"}, tiles = {"wool_"..color..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,
flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
sunlight_propagates = true, sunlight_propagates = true,
}) })
end end
end