Smart Belt Immunity

by tjson

This mod modifies the Belt Immunity Equipment. It turns off the immunity to belts when you're moving in the same direction as the belt is.

Utilities
2 years ago
1.1
2.12K

g Error if non-grid armor equipped

2 years ago

The mod Smart Belt Immunity (0.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event smart-belt-immunity::on_tick (ID 0)
smart-belt-immunity/control.lua:2: attempt to index local 'grid' (a nil value)
stack traceback:
smart-belt-immunity/control.lua:2: in function 'disable_belt_immunity'
smart-belt-immunity/control.lua:29: in function <smart-belt-immunity/control.lua:11>

Can be easily fixed by checking for the grid being present before accessing it.

2 years ago

Thank you for reporting this! Can't believe I missed this. I've added the check and it should be working well now!

This thread has been locked.