Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Aug 8, 2023
1 parent 40a68fb commit 52a2672
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package fi.dy.masa.itemscroller.mixin;

import fi.dy.masa.itemscroller.event.RenderEventHandler;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraftforge.client.ForgeHooksClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(value = ForgeHooksClient.class, remap = false)
public abstract class MixinForgeHooksClient {
@Inject(method = "drawScreen", at = @At("RETURN"))
private static void onDrawScreenPost(Screen screen, MatrixStack poseStack, int mouseX, int mouseY, float partialTick, CallbackInfo ci)
{
RenderEventHandler.instance().onDrawScreenPost(MinecraftClient.getInstance());
}
}
24 changes: 0 additions & 24 deletions src/main/java/fi/dy/masa/itemscroller/mixin/MixinGameRenderer.java

This file was deleted.

38 changes: 19 additions & 19 deletions src/main/resources/itemscroller.mixins.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"required": true,
"package": "fi.dy.masa.itemscroller.mixin",
"compatibilityLevel": "JAVA_17",
"minVersion": "0.8",
"client": [
"IMixinCraftingResultSlot",
"IMixinMerchantScreen",
"IMixinScreenWithHandler",
"IMixinSlot",
"MixinAbstractInventoryScreen",
"MixinClientPlayerInteractionManager",
"MixinCraftingScreenHandler",
"MixinGameRenderer",
"MixinMerchantScreen",
"MixinMerchantScreenHandler"
],
"injectors": {
"defaultRequire": 1
}
"required": true,
"package": "fi.dy.masa.itemscroller.mixin",
"compatibilityLevel": "JAVA_17",
"minVersion": "0.8",
"client": [
"IMixinCraftingResultSlot",
"IMixinMerchantScreen",
"IMixinScreenWithHandler",
"IMixinSlot",
"MixinAbstractInventoryScreen",
"MixinClientPlayerInteractionManager",
"MixinCraftingScreenHandler",
"MixinForgeHooksClient",
"MixinMerchantScreen",
"MixinMerchantScreenHandler"
],
"injectors": {
"defaultRequire": 1
}
}

0 comments on commit 52a2672

Please sign in to comment.