Skip to content

Commit

Permalink
Hot'fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Feb 16, 2023
1 parent 76042be commit 02f8d33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketSetCreat
import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketSetSlot
import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketWindowItems
import com.willfp.eco.internal.spigot.proxy.common.packet.display.frame.clearFrames
import com.willfp.eco.internal.spigot.proxy.v1_17_R1.display.PacketChat
import net.minecraft.network.protocol.Packet
import org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer
import org.bukkit.entity.Player
Expand Down Expand Up @@ -42,7 +41,7 @@ class PacketHandler : PacketHandlerProxy {
PacketSetCreativeSlot,
PacketSetSlot,
PacketWindowItems(plugin),
PacketChat
// PacketChat
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketSetCreat
import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketSetSlot
import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketWindowItems
import com.willfp.eco.internal.spigot.proxy.common.packet.display.frame.clearFrames
import com.willfp.eco.internal.spigot.proxy.v1_18_R1.display.PacketChat
import net.minecraft.network.protocol.Packet
import org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer
import org.bukkit.entity.Player

class PacketHandler: PacketHandlerProxy {
class PacketHandler : PacketHandlerProxy {
override fun sendPacket(player: Player, packet: com.willfp.eco.core.packet.Packet) {
if (player !is CraftPlayer) {
return
Expand All @@ -42,7 +41,7 @@ class PacketHandler: PacketHandlerProxy {
PacketSetCreativeSlot,
PacketSetSlot,
PacketWindowItems(plugin),
PacketChat
// PacketChat
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketSetCreat
import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketSetSlot
import com.willfp.eco.internal.spigot.proxy.common.packet.display.PacketWindowItems
import com.willfp.eco.internal.spigot.proxy.common.packet.display.frame.clearFrames
import com.willfp.eco.internal.spigot.proxy.v1_18_R2.display.PacketChat
import net.minecraft.network.protocol.Packet
import org.bukkit.craftbukkit.v1_18_R2.entity.CraftPlayer
import org.bukkit.entity.Player

class PacketHandler: PacketHandlerProxy {
class PacketHandler : PacketHandlerProxy {
override fun sendPacket(player: Player, packet: com.willfp.eco.core.packet.Packet) {
if (player !is CraftPlayer) {
return
Expand All @@ -42,7 +41,7 @@ class PacketHandler: PacketHandlerProxy {
PacketSetCreativeSlot,
PacketSetSlot,
PacketWindowItems(plugin),
PacketChat
// PacketChat
)
}
}

0 comments on commit 02f8d33

Please sign in to comment.