Fixed the game crash on attempt to send empty plane or send drone with drone cargo
original issue is fixed by kolhov
in the mod thread of the crash issue, but it never got fixed by the developer, so i did for me and friend
ver 2.0.1: OMG IM GONNA KILL MYSELF
NOTE: im do not guarantee this works 100% since i am not a factorio modder, plus this mod is a mess to debug with 0 knowledge of modding, so if it breaks just report the error, i might try to fix it.
what this does:
- adds a check for set_slot() and clear_slot() in update_logistics_filters()
- adds a safe number function to prevent null error
- wraps call of the update_logistics_filters in pcall to prevent a crash and fail silently
- makes me listen to this music each time i have to fix this mod to keep playing with it: https://www.youtube.com/watch?v=urb3uHYf3OY