Skip to content

Commit

Permalink
Fix #708: Notify listeners when a player locks a configurable slot (#718
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Technici4n authored May 26, 2024
1 parent 5e605dd commit b8d9961
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ public static <T, K extends TransferVariant<T>> void playerLockNoOverride(T inst
if (stack.key.isOf(instance) || (stack.isResourceBlank() && allowEmptyStacks)) {
stack.lockedInstance = instance;
stack.playerLocked = true;
stack.notifyListeners();
return;
}
}
Expand All @@ -257,6 +258,7 @@ public boolean playerLock(T instance, Simulation simulation) {
if (simulation.isActing()) {
lockedInstance = instance;
playerLocked = true;
notifyListeners();
}
return true;
}
Expand Down

0 comments on commit b8d9961

Please sign in to comment.