Skip to content

Commit e62c08e

Browse files
committed
fix: use getIfPresent for recent action cache
1 parent b43f692 commit e62c08e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/top/ellan/mahjong/table/core/TableEventCoordinator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private boolean isProtectedTableEntity(Entity entity) {
203203
}
204204

205205
private boolean isDuplicateDisplayAction(UUID playerId, DisplayClickAction action) {
206-
RecentDisplayAction recent = this.recentDisplayActions.get(playerId);
206+
RecentDisplayAction recent = this.recentDisplayActions.getIfPresent(playerId);
207207
if (recent == null || !recent.matches(action)) {
208208
return false;
209209
}

0 commit comments

Comments
 (0)