I'm picking up maintaining Deadlock's mods for 0.17, and part of the work I'm doing is a refactor from two mods into one mod for both loaders and beltboxes.
The new mod provides an identical API to the old one, so no changes are needed to the API calls themselves - but, because the new mod has a new mod name, the current checks for the presence of DSB don't work on the 0.17 version.
This updates these checks to look for the presence of the API instead of the specific mod - but if you prefer, something like if mods["DeadlockStacking"] or mods["deadlock-beltboxes-loaders"] then would work instead to load if either mod is present.
Hey,
I'm picking up maintaining Deadlock's mods for 0.17, and part of the work I'm doing is a refactor from two mods into one mod for both loaders and beltboxes.
The new mod provides an identical API to the old one, so no changes are needed to the API calls themselves - but, because the new mod has a new mod name, the current checks for the presence of DSB don't work on the 0.17 version.
This updates these checks to look for the presence of the API instead of the specific mod - but if you prefer, something like
if mods["DeadlockStacking"] or mods["deadlock-beltboxes-loaders"] then
would work instead to load if either mod is present.Thanks!