diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/recipes/RecipePacketFixer.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/recipes/RecipePacketFixer.kt index a39690cc..2cf01704 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/recipes/RecipePacketFixer.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/recipes/RecipePacketFixer.kt @@ -19,6 +19,11 @@ class RecipePacketFixer( override fun onSend(packet: PacketContainer, player: Player, event: PacketEvent) { val nmsPackets = this.getPlugin().getProxy(RecipePacketProxy::class.java).splitPacket(packet.handle) + if (nmsPackets.size <= 1) { + return + } + + event.isCancelled = true for (nmsPacket in nmsPackets) { val protocolLibPacket = PacketContainer.fromPacket(nmsPacket) ProtocolLibrary.getProtocolManager().sendServerPacket(player, protocolLibPacket, false)