#Soft Dependencies Implementation

3 messages · Page 1 of 1 (latest)

leaden mason
#

So this is how I plan on detecting other mods, and registering compatibility items accordingly. Would this be a safe way to do it, and if so, could it be simplified further

#

(Using the factory pattern to check if it's a valid registry class btw)

tame junco
#

iirc generally doing soft-deps by checking isModLoaded "works" but when the dep isn't loaded, it fails silently (but still produces a ClassDefNotFound error)