Total number of downloads.
Total customers served.
Total number of files sold.
Total payments processed.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
Kom4nder
Hello Support Team,
We have encountered an issue with the Loottable plugin. When changing the stack size in the stackSizeController section, the automatic stacking of items upon pickup stops working.
Issue Description:
Expected Behavior: Under default settings, items automatically stack when picked up, as managed by the hooks (CanStackItem, OnItemStacked, OnItemSplit) within the plugin.
Actual Behavior: After modifying the stack size settings in stackSizeController, the auto-stacking functionality is disabled, resulting in an excessive number of individual items in the inventory instead of being combined into stacks.
Context:
The stacking mechanism is activated through the UpdateStackingSubscriptions method, which subscribes to the necessary hooks if stackSizeController is enabled.
It appears that altering the stack size in the configuration affects the controller’s logic, preventing the required hooks from being registered, and consequently, the automatic merging of items does not occur.
Steps to Reproduce:
Open the plugin configuration and navigate to the stackSizeController section.
Modify the stack size value (for example, set it to a value different from the default).
Save the settings and reload the plugin.
Pick up items that should automatically stack.
Notice that the items remain separate despite having identical properties (ID, skin, name, condition, etc.).
Proposed Solution: Please review the logic in the UpdateStackingSubscriptions method, which handles the subscription of stacking-related hooks. It seems that changing the stack size in stackSizeController may cause the condition (stackSizeController.Enabled && !unsubscribe) to fail, preventing the hooks from being registered correctly.We appreciate your prompt attention to this matter.
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now