Skip to content

Commit

Permalink
Fix stack counter missing in obfuscated env
Browse files Browse the repository at this point in the history
Closes #35
  • Loading branch information
NotMyWing committed Dec 11, 2023
1 parent 3bbcfa3 commit 5eac7e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static java.util.Collections.EMPTY_LIST;

@SuppressWarnings({ "SameReturnValue", "AddedMixinMembersNamePattern" })
@Mixin(value = AEBaseGui.class, remap = false)
@Mixin(value = AEBaseGui.class)
public class MixinAEBaseGui extends GuiContainer {
@Unique
protected List<PatternMultiToolButton> patternMultiToolButtons = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ public class MixinJEIIngredientGrid {
@Unique
private Collection<Rectangle> rectangles = null;

@Inject(at = @At("HEAD"), method = "shouldDeleteItemOnClick(Lnet/minecraft/client/Minecraft;II)Z", cancellable =
true)
@Inject(
at = @At("HEAD"),
method = "shouldDeleteItemOnClick(Lnet/minecraft/client/Minecraft;II)Z",
cancellable = true
)
private void shouldDeleteItemOnClick(Minecraft minecraft, int mouseX, int mouseY,
CallbackInfoReturnable<Boolean> cir) {
if (this.rectangles != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@

@Mixin(value = StackSizeRenderer.class)
public abstract class MixinStackSizeRenderer {
@Inject(method = "renderStackSize", at = @At(value = "INVOKE", shift = At.Shift.BEFORE, target =
"Lnet/minecraft" + "/client/renderer/GlStateManager;enableLighting()V"))
@Inject(method = "renderStackSize", at = @At(
value = "INVOKE",
shift = At.Shift.BEFORE,
target = "Lnet/minecraft/client/renderer/GlStateManager;enableLighting()V")
)
private void renderStackExtended(FontRenderer fontRenderer, IAEItemStack aeStack, int xPos, int yPos,
CallbackInfo ci) {
if (aeStack instanceof IExtendedAEItemStack eais && eais.getExtendedCount() > 1) {
Expand Down

0 comments on commit 5eac7e4

Please sign in to comment.