Skip to content

Commit

Permalink
Fixed Forge jar not working in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Sep 9, 2023
1 parent 1087f59 commit 00719c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/src/main/resources/immediatelyfast.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ accessible field com/mojang/blaze3d/platform/GlStateManager BLEND Lcom/mojang/bl
accessible class com/mojang/blaze3d/platform/GlStateManager$BlendFuncState
accessible field com/mojang/blaze3d/platform/GlStateManager DEPTH Lcom/mojang/blaze3d/platform/GlStateManager$DepthTestState;
accessible class com/mojang/blaze3d/platform/GlStateManager$DepthTestState
accessible class com/mojang/blaze3d/platform/GlStateManager$CapabilityTracker # Only needed on Forge
accessible field com/mojang/blaze3d/platform/GlStateManager$CapabilityTracker state Z
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@Mixin(ForgeGui.class)
public abstract class MixinForgeGui {

@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lcom/google/common/collect/ImmutableList;forEach(Ljava/util/function/Consumer;)V"))
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lcom/google/common/collect/ImmutableList;forEach(Ljava/util/function/Consumer;)V", remap = false))
private void batching(final ImmutableList<NamedGuiOverlay> instance, final Consumer<NamedGuiOverlay> consumer) {
if (ImmediatelyFast.runtimeConfig.hud_batching) {
instance.forEach(overlay -> {
Expand Down

0 comments on commit 00719c9

Please sign in to comment.