Skip to content

InventoryListener fires when opening bank

Summary

The InventoryListener is fired when you open up the bank. All items in the inventory are regarded as "Additions".

Steps to reproduce

  1. Open the Dev Toolkit -> Events.
  2. Open up the bank.
  3. Reproduced!

Example Code

N/A

What is the current behavior?

The InventoryListener creates an ItemEvent for every item in your inventory and regards it as an addition when opening the bank. It is worth noting that Bank#isOpen() is false when the event is processed.

What is the expected correct behavior?

It should not fire the InventoryListener when opening the bank.

Relevant logs and/or screenshots

image

Possible fixes

See expected behaviour.

Edited by RobinPC