aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch
diff options
context:
space:
mode:
authorMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
committerMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
commitbee74680e607c2e29b038329f62181238911cd83 (patch)
tree708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch
parent0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff)
downloadPaper-softspoon.tar.gz
Paper-softspoon.zip
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch')
-rw-r--r--patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch b/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch
new file mode 100644
index 0000000000..d49deb4a55
--- /dev/null
+++ b/patch-remap/mache-vineflower/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java.patch
@@ -0,0 +1,46 @@
+--- a/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java
++++ b/net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java
+@@ -1,23 +1,25 @@
++// 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;
+ import net.minecraft.world.phys.BlockHitResult;
+
+ public class ServerboundUseItemOnPacket implements Packet<ServerGamePacketListener> {
++
+ private final BlockHitResult blockHit;
+- private final InteractionHand hand;
++ private final EnumHand hand;
+ private final int sequence;
+
+- public ServerboundUseItemOnPacket(InteractionHand hand, BlockHitResult blockHit, int sequence) {
++ public ServerboundUseItemOnPacket(EnumHand hand, BlockHitResult blockHit, int sequence) {
+ this.hand = hand;
+ this.blockHit = blockHit;
+ this.sequence = sequence;
+ }
+
+ public ServerboundUseItemOnPacket(FriendlyByteBuf buffer) {
+- this.hand = buffer.readEnum(InteractionHand.class);
++ this.hand = (EnumHand) buffer.readEnum(EnumHand.class);
+ this.blockHit = buffer.readBlockHitResult();
+ this.sequence = buffer.readVarInt();
+ }
+@@ -29,12 +31,11 @@
+ buffer.writeVarInt(this.sequence);
+ }
+
+- @Override
+ public void handle(ServerGamePacketListener handler) {
+ handler.handleUseItemOn(this);
+ }
+
+- public InteractionHand getHand() {
++ public EnumHand getHand() {
+ return this.hand;
+ }
+