Hook request.Solved

Can you add hook to detect if ItemContainer is Backpack? i need to block item input but unless they enable Blacklist the hook CanBackpackAcceptItem is never called.

It sounds like you're asking for an API method on Backpacks that can be called to see if a particular container is a backpack. Instead, I think it would be better to just make the CanBackpackAcceptItem hook be called regardless of whether items are blacklisted in the config.

Planning an update soon with several changes. Will try to include this.

Thanks.

As discussed on Discord, the original request wasn't what you really wanted. Instead, the following have been implemented in v3.5.0.

  • The CanBackpackAcceptItem hook is now called even when Blacklisting is not enabled
  • Items with items inside them can now be placed in backpacks without causing errors
Backpacks v3.5.0 is currently available for download in the beta thread.
https://umod.org/community/backpacks/31436-backpacks-beta-350
Locked automatically