vini2003/Spinnery

Lock-ness is only polled for PICKUP_ALL

Closed this issue · 2 comments

Lockness monster

Version: 1.15.2
Issue Description: ** isLocked is only polled for PICKUP_ALL in BaseContainer, which means most actions work regardless of whether or not a slot is locked.
Replication:

  1. create a simple container
  2. add the following code in constructor
for (WAbstractWidget widget : mainInterface.getWidgets()) {
    if (widget instanceof WSlot) {
        ((WSlot) widget).setLocked(true);
    }
}
  1. attempt to interact with any slot in the inventory

fixed in 1.15.2

1.16.3 soon

done