content: package myau.mixin;
  
  import myau.Myau;
  import myau.module.modules.Scaffold;
  import net.minecraft.client.gui.GuiIngame;
  import net.minecraft.entity.player.InventoryPlayer;
  import net.minecraft.item.ItemStack;
  import net.minecraftforge.fml.relauncher.Side;
  import net.minecraftforge.fml.relauncher.SideOnly;
  import org.spongepowered.asm.mixin.Mixin;
  import org.spongepowered.asm.mixin.injection.At;
  import org.spongepowered.asm.mixin.injection.Redirect;
  
  @SideOnly(Side.CLIENT)
  @Mixin({GuiIngame.class})
  public abstract class MixinGuiIngame {
      @Redirect(
              method = {"updateTick"},
              at = @At(
                      value = "INVOKE",
                      target = "Lnet/minecraft/entity/player/InventoryPlayer;getCurrentItem()Lnet/minecraft/item/ItemStack;"
              )
      )
      private ItemStack updateTick(InventoryPlayer inventoryPlayer) {
          Scaffold scaffold = (Scaffold) Myau.moduleManager.modules.get(Scaffold.class);
          if (scaffold.isEnabled() && scaffold.itemSpoof.getValue()) {
              int slot = scaffold.getSlot();
              if (slot >= 0) {
                  return inventoryPlayer.getStackInSlot(slot);
              }
          }
          return inventoryPlayer.getCurrentItem();
      }
  }
  