Even Distribution


Modifies CTRL + Click Drag to evenly distribute the items over multiple buildings. Also adds Inventory Cleanup hotkey (SHIFT+C) which evenly distributes unneeded items from inventory into nearby machines.

Utilities
2 months ago
0.15 - 2.0
412K

b crash when entity gets replaced by bot

2 years ago

I was dragging modules over some entities that were marked for upgrade. When the bots came and started to replace the entities, even distribution caused a game crash:

41299.506 Error MainLoop.cpp:1284: Exception at tick 17807936: The mod Even Distribution (1.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/helpers.lua:21: in function 'index'
__even-distribution
/scripts/drag.lua:224: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:208: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>

New response