Lock-ness is only polled for PICKUP_ALL
Draylar opened 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:
- create a simple container
- add the following code in constructor
for (WAbstractWidget widget : mainInterface.getWidgets()) {
if (widget instanceof WSlot) {
((WSlot) widget).setLocked(true);
}
}
- attempt to interact with any slot in the inventory