Skip to content

Commit

Permalink
yarn build 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Sep 27, 2024
1 parent 2467634 commit cdd9f42
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ mod_version = 0.24.999-snap

# Required malilib version
malilib_version = 0.20.999-snap
malilib_id = 428295dd17
malilib_id = 95311a9ab4

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 24w39a
minecraft_version = 24w39a
mappings_version = 24w39a+build.3
mappings_version = 24w39a+build.5

fabric_loader_version = 0.16.5
mod_menu_version = 12.0.0-alpha.1
# fabric_api_version = 0.105.0+1.21.2
# fabric_api_version = 0.105.1+1.21.2

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package fi.dy.masa.itemscroller.mixin;

import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.ingame.StatusEffectsDisplay;
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;
import fi.dy.masa.itemscroller.util.InputUtils;

@Mixin(StatusEffectsDisplay.class)
public abstract class MixinStatusEffectsDisplay
{
@Inject(method = "drawStatusEffects(Lnet/minecraft/client/gui/DrawContext;II)V", at = @At("HEAD"), cancellable = true)
private void preventPotionEffectRendering(DrawContext context, int mouseX, int mouseY, CallbackInfo ci)
{
if (InputUtils.isRecipeViewOpen())
{
ci.cancel();
}
}
}
4 changes: 2 additions & 2 deletions src/main/resources/mixins.itemscroller.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"IMixinRecipeBookWidget",
"IMixinScreenWithHandler",
"IMixinSlot",
"MixinAbstractInventoryScreen",
"MixinAbstractCraftingRecipeBookWidget",
"MixinClientPlayerInteractionManager",
"MixinClientPlayNetworkHandler",
Expand All @@ -19,7 +18,8 @@
"MixinMerchantScreen",
"MixinMerchantScreenHandler",
"MixinRecipeBookWidget",
"MixinScreen"
"MixinScreen",
"MixinStatusEffectsDisplay"
],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit cdd9f42

Please sign in to comment.