From cea35d5c50a68247fc5b281261c3539eb690bfde Mon Sep 17 00:00:00 2001 From: Christian Danscheid Date: Thu, 15 Aug 2013 11:28:58 +0200 Subject: Added softdependencies for trafficlight --- streetsmod/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'streetsmod') diff --git a/streetsmod/init.lua b/streetsmod/init.lua index 5a49d1b..3a94f6f 100644 --- a/streetsmod/init.lua +++ b/streetsmod/init.lua @@ -42,6 +42,20 @@ print("'Bucket' not installed \n\t => No signs available") streets.extendedBy.bucket = false end + if minetest.get_modpath("mesecons") then + print("'Mesecons' is installed \n\t => Trafficlights might be available. Checking for digilines.") + streets.extendedBy.mesecons = true + else + print("'Mesecons' not installed \n\t => No trafficlight, sorry.") + streets.extendedBy.mesecons = false + end + if minetest.get_modpath("digilines") then + print("'Digilines' is installed \n\t => Trafficlights might be available") + streets.extendedBy.digilines = true + else + print("'Digilines' not installed \n\t => No trafficlight, sorry.") + streets.extendedBy.digilines = false + end -- Done print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!") \ No newline at end of file -- cgit v1.2.3