Fixed classic inventory showing background

This commit is contained in:
FlorianMichael 2023-11-04 15:24:16 +01:00
parent 07a0001ab4
commit d6c8501fa9
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 6 additions and 3 deletions

View File

@ -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();

View File

@ -175,6 +175,5 @@ public class ClassicItemSelectionScreen extends VFPScreen {
}
y += ITEM_XY_BOX_DIMENSION_CLASSIC;
}
super.render(context, mouseX, mouseY, delta);
}
}

View File

@ -112,7 +112,9 @@ public abstract class MixinMinecraftClient implements IMinecraftClient {
@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();