Skip to content

Commit

Permalink
Fix some remapping warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jul 6, 2024
1 parent fd99db1 commit 3f3611f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@

import gripe._90.appliede.me.key.EMCKey;

@Mixin(MEStorageMenu.class)
@Mixin(value = MEStorageMenu.class, remap = false)
public abstract class MEStorageMenuMixin {
// spotless:off
@Redirect(
method = "lambda$tryFillContainerItem$2",
at = @At(
value = "INVOKE",
target = "Lappeng/api/storage/StorageHelper;poweredExtraction(Lappeng/api/networking/energy/IEnergySource;Lappeng/api/storage/MEStorage;Lappeng/api/stacks/AEKey;JLappeng/api/networking/security/IActionSource;Lappeng/api/config/Actionable;)J",
remap = false))
target = "Lappeng/api/storage/StorageHelper;poweredExtraction(Lappeng/api/networking/energy/IEnergySource;Lappeng/api/storage/MEStorage;Lappeng/api/stacks/AEKey;JLappeng/api/networking/security/IActionSource;Lappeng/api/config/Actionable;)J"))
// spotless:on
private long emcExtraction(
IEnergySource powerSource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@

import gripe._90.appliede.me.reporting.GridInventoryEMCEntry;

@Mixin(MEInventoryUpdatePacket.class)
@Mixin(value = MEInventoryUpdatePacket.class, remap = false)
public abstract class MEInventoryUpdatePacketMixin {
// spotless:off
@Redirect(
method = "<init>(Lnet/minecraft/network/FriendlyByteBuf;)V",
at = @At(
value = "INVOKE",
target = "Lappeng/core/sync/packets/MEInventoryUpdatePacket;readEntry(Lnet/minecraft/network/FriendlyByteBuf;)Lappeng/menu/me/common/GridInventoryEntry;",
remap = false))
target = "Lappeng/core/sync/packets/MEInventoryUpdatePacket;readEntry(Lnet/minecraft/network/FriendlyByteBuf;)Lappeng/menu/me/common/GridInventoryEntry;"))
// spotless:on
private GridInventoryEntry readEntryWithEmc(FriendlyByteBuf buffer) {
return GridInventoryEMCEntry.readEntry(buffer);
Expand Down

0 comments on commit 3f3611f

Please sign in to comment.