StrangeLoopGames/EcoSuggestions

StackLimitRestriction not working in specific circumstance

muzs1 opened this issue · 1 comments

muzs1 commented

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:

  1. Create a storage object with a stack limit restriction of more that 1 E.g. "Storage.AddInvRestriction(new StackLimitRestriction(40));"

  2. 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.

  3. That the items does not stack as expected to 40, it you drag two trucks together they just swap location.

  4. (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.

muzs1 commented

Posted in the wrong place oops.