diff --git a/src/main/java/land/chipmunk/chipmunkmod/modules/SelfCare.java b/src/main/java/land/chipmunk/chipmunkmod/modules/SelfCare.java index 81c0ed6..4e919e9 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/modules/SelfCare.java +++ b/src/main/java/land/chipmunk/chipmunkmod/modules/SelfCare.java @@ -143,13 +143,17 @@ public class SelfCare extends Listener { public void packetReceived(PlayerPositionLookS2CPacket packet) { if (timer == null) return; - positionPacketsPerSecond++; + try { + positionPacketsPerSecond++; - timer.schedule(new TimerTask() { - @Override - public void run() { - positionPacketsPerSecond--; - } - }, 1000); + timer.schedule(new TimerTask() { + @Override + public void run() { + positionPacketsPerSecond--; + } + }, 1000); + } catch (Exception e) { + e.printStackTrace(); + } } }