Fix on_player_swaps_hands firing on stab instead of when it should
This commit is contained in:
1 parent
1e6860fdd9
commit
47f5bdf318
1 file changed
+1
-1
@@ -100,7 +100,7 @@ public class ServerGamePacketListenerImpl_scarpetEventsMixin
|
|||||||
@Inject(method = "handlePlayerAction", cancellable = true, at = @At(
|
@Inject(method = "handlePlayerAction", cancellable = true, at = @At(
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Lnet/minecraft/server/level/ServerPlayer;getItemInHand(Lnet/minecraft/world/InteractionHand;)Lnet/minecraft/world/item/ItemStack;",
|
target = "Lnet/minecraft/server/level/ServerPlayer;getItemInHand(Lnet/minecraft/world/InteractionHand;)Lnet/minecraft/world/item/ItemStack;",
|
||||||
ordinal = 0,
|
ordinal = 1, // not very robust, see spear
|
||||||
shift = At.Shift.BEFORE
|
shift = At.Shift.BEFORE
|
||||||
))
|
))
|
||||||
private void onHandSwap(ServerboundPlayerActionPacket playerActionC2SPacket_1, CallbackInfo ci)
|
private void onHandSwap(ServerboundPlayerActionPacket playerActionC2SPacket_1, CallbackInfo ci)
|
||||||
|
|||||||
Reference in new issue
Block a user