From c6d4375aa85d750d0e3d6ab3107df6cf9d417782 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jun 2024 15:06:17 -0500 Subject: [PATCH] error popup when trying to flag unboxed too frequently --- src/engine/net/client/msg/VendorDialogMsg.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/msg/VendorDialogMsg.java b/src/engine/net/client/msg/VendorDialogMsg.java index 016665a3..0336a275 100644 --- a/src/engine/net/client/msg/VendorDialogMsg.java +++ b/src/engine/net/client/msg/VendorDialogMsg.java @@ -101,8 +101,12 @@ public class VendorDialogMsg extends ClientNetMsg { if(!playerCharacter.getTimestamps().containsKey("lastBoxFlag")) playerCharacter.getTimestamps().put("lastBoxFlag",System.currentTimeMillis() - 1000); - if(playerCharacter.getTimestamps().get("lastBoxFlag") + 10000 > System.currentTimeMillis()) + if(playerCharacter.getTimestamps().get("lastBoxFlag") + 10000 > System.currentTimeMillis()) { PlayerCharacter.unboxPlayer(playerCharacter); + }else{ + ErrorPopupMsg.sendErrorPopup(playerCharacter, 49); + return; + } } // Restrict disc trainers to only characters who have