StackLimitRestriction not working in specific circumstance
muzs1 opened this issue · 1 comments
When using the "StackLimitRestriction" to increase the stack size of all items placed in a storage object, items with a default stack limit of 1 (such as trucks) do not stack as expected; instead, the items will swap locations, and no error message is displayed.
To reproduce the issue:
-
Create a storage object with a stack limit restriction of more that 1 E.g. "Storage.AddInvRestriction(new StackLimitRestriction(40));"
-
Attempt to stack an item like a truck that can only stack to 1 into the storage object using a standard drag-and-drop method.
-
That the items does not stack as expected to 40, it you drag two trucks together they just swap location.
-
(Workaround) If you place multiple trucks into a stockpile and then shift+drag them into the modded storage, the items will merge and stack correctly.
Posted in the wrong place oops.