Skip to content

Commit

Permalink
fix remaping issue in MixinZtonesPatchPacketExploits (#162)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <[email protected]>
  • Loading branch information
Alexdoru and Dream-Master authored Jan 19, 2023
1 parent 1c14b75 commit 7fd0eab
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
public class MixinZtonesPatchPacketExploits {

@ModifyExpressionValue(
method = "processData",
remap = false,
at =
@At(
value = "INVOKE",
target =
"Lnet/minecraft/entity/player/EntityPlayer;getHeldItem()Lnet/minecraft/item/ItemStack;",
value = "INVOKE"),
method = "processData",
remap = false)
remap = true))
private ItemStack hodgepodge$getPlayerHeldZtonesItem(ItemStack original) {
if (original == null) return null;
final Item heldItem = original.getItem();
Expand Down

0 comments on commit 7fd0eab

Please sign in to comment.