Purpose
Whenever a player click on an item in the recipe book, it sends a packet to the server to find that recipe for you and fill in the appropriate items to the crafting slots.
However, no cool down has been implemented officially, meaning a malicious player can spam packets to the server at an excessive rate (Even with just autoclicker) and effectively lagging out the server.
This is a simple Fabric-compatible mod that prevents excessive crafting recipe request from the client to lag out the server.
Config
By default, the mod will only allow the player to request a recipe every 100ms (This is usually enough to prevent excessive spamming).
If you want other value for any reason, create a file called recipe_cooldown.cfg
in the config
folder, with a number inside representing the timeout in millisecond.
Bugs/Suggestion
You may open an GitHub issue here, please keep things civil :)
License
This project is licensed under the MIT License.