GimoXagros / morebobs

Extends additional add-ons for all of the Bob's mod
Other
1 stars 1 forks source link

Update stacked item API calls to be compatible with both old and new versions of Deadlock's mods #2

Open shanemadden opened 5 years ago

shanemadden commented 5 years ago

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!