File tree Expand file tree Collapse file tree
src/main/java/top/ellan/mahjong/table/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646
4747public final class MahjongTableManager implements Listener {
4848 private static final String ADMIN_PERMISSION = "mahjongpaper.admin" ;
49- private static final long DUPLICATE_DISPLAY_ACTION_WINDOW_NANOS = 40_000_000L ;
50- private static final long DUPLICATE_HAND_TILE_CLICK_WINDOW_NANOS = 40_000_000L ;
49+ private static final long DUPLICATE_DISPLAY_ACTION_WINDOW_NANOS = 150_000_000L ;
50+ private static final long DUPLICATE_HAND_TILE_CLICK_WINDOW_NANOS = 150_000_000L ;
5151 private static final long RECENT_DISPLAY_ACTION_TTL_SECONDS = 60L ;
5252 private static final long RECENT_HAND_TILE_CLICK_TTL_SECONDS = 60L ;
5353 private static final double PERSISTED_TABLE_CLEANUP_RADIUS_XZ = 4.5D ;
Original file line number Diff line number Diff line change 4141import org .bukkit .util .RayTraceResult ;
4242
4343final class TableEventCoordinator implements Listener {
44- private static final long DUPLICATE_DISPLAY_ACTION_WINDOW_NANOS = 40_000_000L ;
44+ private static final long DUPLICATE_DISPLAY_ACTION_WINDOW_NANOS = 150_000_000L ;
4545 private static final long OVERHEAD_EXIT_GUARD_SECONDS = 2L ;
4646 private static final double FLAT_INTERACTION_MAX_DISTANCE = 6.0D ;
4747 private static final double FLAT_INTERACTION_BLOCK_EPSILON = 0.05D ;
4848 /**
4949 * Bounded TTL on the per-player recent-action cache. The dedup window is
50- * 40ms (DUPLICATE_DISPLAY_ACTION_WINDOW_NANOS), so anything older than a
50+ * 150ms (DUPLICATE_DISPLAY_ACTION_WINDOW_NANOS), so anything older than a
5151 * few seconds is by definition not a duplicate of a fresh click — but the
5252 * previous bare ConcurrentHashMap only evicted on PlayerQuitEvent, which
5353 * on Folia can occasionally be missed when the player's entity region
You can’t perform that action at this time.
0 commit comments