- Removed methods for writing/reading/checking mod versions.
- Changed accepted versions to the current mod version.
- Removed MismatchedVersionException.java.
These changes should enforce that the exact same mod versions are only allowed to play together.
- Fixed the mod version pattern being incorrect.
- Fixed mod version checking not working.
- Fixed MismatchedVersionException not being thrown if the mod versions are wrong.
- Added more comments
- Removed unnecessary alpha calculations.
- Replaced draw method with drawShadow.
- Cleaned up variables
- Made y offset to scale with window height.
- Added more comments.
- Renamed variable isHotbarPressed to isHotBarPressed.
- Extracted checking if the screen is allowed into its own method.
- Extracted updating last input tick and sending an InputPacket into its own method.
- When a monitored key is pressed, it now checks if the screen along with the key are not allowed before calling updateAndNotify().
All of the above changes fixed the issue of being able to close inventory while afk when inventory is not allowed along with clicking the button to unpause the game ending the "Joining" and "AFK" states.
- Updated updateState method to fit in all current config options as well as the new grace states.
- Added Javadoc to startAfkTimer method.
- Removed old todo comments.
- Removed unnecessary state check in the afk timer task.
- Renamed startGracePeriod method to startGraceTimer. Added delay parameter. Updated Javadoc. Removed old grace period time initialization in the protected player. Rewrote the timer task to now just update the player state after the delay.
- Removed unnecessary check at the end of applyPostEffects to remove player if afk is disabled. This is now done in the updateState method.
- Removed old way of tracking how much time is left in the grace period.
- Added delay parameter to the setGracePeriodTimerTask method.
- Added two new States: LOGIN_GRACE and AFK_GRACE.
- Removed old config options for the grace period and replaced them with separate options for a grace period after login and after afk.
- Changed naming convention for config file sections.
- Renamed config options IGNORE_PLAYER_ENABLED to MOBS_IGNORE_PLAYER.
- Added new config option for applying post effects after login.
- Removed unnecessary default constructor.
- When handling the packet the client will first check if input is allowed which should update the last input tick if needs be before sending it to the server.
It now keeps track of whether any of configurable keys is pressed in or not. It also will now check whether any of the pressed keys are allowed or not before updating last input tick and sending an input packet. This was done to fix the issue of GLFW_REPEAT stopping after another key is typed. This will prevent a player from going afk while still moving after jumping etc.
- No longer adding a player that might not exist to then instantly remove them if they don't.
- Updated method calls to match new ones in ProtectedPlayer.
- Updated packet names to new ones.
- Grace period timer no longer cancels the timer but itself instead.
- Created new method for starting the afk timer for a player, starting a new afk timer whenever a player becomes active.
-Removed lastInputTick field along with the getter and setter.
-Changed timer name and added two TimerTask fields for the grace period and afk.
-Changed the getter for the timer.
-Added new setters for both of the timer tasks.