Skip to content

Commit

Permalink
Fixed classic inventory showing background
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Nov 4, 2023
1 parent 07a0001 commit d6c8501
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public class ViaFabricPlus {
private final InformationSystem informationSystem = new InformationSystem();

public void init() {
if (!RUN_DIRECTORY.exists()) RUN_DIRECTORY.mkdir();
if (!RUN_DIRECTORY.exists()) {
RUN_DIRECTORY.mkdir();
}

// Load overriding jars first so other code can access the new classes
ViaJarReplacer.loadOverridingJars();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,5 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
}
y += ITEM_XY_BOX_DIMENSION_CLASSIC;
}
super.render(context, mouseX, mouseY, delta);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public void updateCooldown(CallbackInfo ci) {
@Inject(method = "tick", at = @At(value = "FIELD", target = "Lnet/minecraft/client/MinecraftClient;currentScreen:Lnet/minecraft/client/gui/screen/Screen;",
ordinal = 4, shift = At.Shift.BEFORE))
public void injectTick(CallbackInfo ci) {
if (!DebugSettings.INSTANCE.executeInputsInSync.isEnabled()) return;
if (!DebugSettings.INSTANCE.executeInputsInSync.isEnabled()) {
return;
}

while (!viafabricplus_mouseInteractions.isEmpty()) {
viafabricplus_mouseInteractions.poll().run();
Expand Down

0 comments on commit d6c8501

Please sign in to comment.