diff options
Diffstat (limited to 'patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java.patch b/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java.patch new file mode 100644 index 0000000000..db097997e2 --- /dev/null +++ b/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java.patch @@ -0,0 +1,43 @@ +--- a/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java ++++ b/net/minecraft/network/protocol/game/ServerboundUseItemPacket.java +@@ -1,20 +1,22 @@ ++// mc-dev import + package net.minecraft.network.protocol.game; + + import net.minecraft.network.FriendlyByteBuf; + import net.minecraft.network.protocol.Packet; +-import net.minecraft.world.InteractionHand; ++import net.minecraft.world.EnumHand; + + public class ServerboundUseItemPacket implements Packet<ServerGamePacketListener> { +- private final InteractionHand hand; ++ ++ private final EnumHand hand; + private final int sequence; + +- public ServerboundUseItemPacket(InteractionHand hand, int sequence) { ++ public ServerboundUseItemPacket(EnumHand hand, int sequence) { + this.hand = hand; + this.sequence = sequence; + } + + public ServerboundUseItemPacket(FriendlyByteBuf buffer) { +- this.hand = buffer.readEnum(InteractionHand.class); ++ this.hand = (EnumHand) buffer.readEnum(EnumHand.class); + this.sequence = buffer.readVarInt(); + } + +@@ -24,12 +26,11 @@ + buffer.writeVarInt(this.sequence); + } + +- @Override + public void handle(ServerGamePacketListener handler) { + handler.handleUseItem(this); + } + +- public InteractionHand getHand() { ++ public EnumHand getHand() { + return this.hand; + } + |