From ee307c382a9f9e73df149031f02a1f0c4f2aac78 Mon Sep 17 00:00:00 2001 From: caramel Date: Sun, 15 Oct 2023 23:11:15 +0900 Subject: [PATCH] fix recipe packet limiter (#9841) --- patches/server/Limit-recipe-packets.patch | 1 - 1 file changed, 1 deletion(-) diff --git a/patches/server/Limit-recipe-packets.patch b/patches/server/Limit-recipe-packets.patch index 6fe675c285..e7e016b6e6 100644 --- a/patches/server/Limit-recipe-packets.patch +++ b/patches/server/Limit-recipe-packets.patch @@ -28,7 +28,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 @Override public void handlePlaceRecipe(ServerboundPlaceRecipePacket packet) { -+ PacketUtils.ensureRunningOnSameThread(packet, this, this.player.serverLevel()); + // Paper start + if (!org.bukkit.Bukkit.isPrimaryThread()) { + if (this.recipeSpamPackets.addAndGet(io.papermc.paper.configuration.GlobalConfiguration.get().spamLimiter.recipeSpamIncrement) > io.papermc.paper.configuration.GlobalConfiguration.get().spamLimiter.recipeSpamLimit) {