MidnightControls 1.2.2 - Important Bugfix

Fix #45
Fix #44
This commit is contained in:
Motschen
2022-06-27 14:10:03 +02:00
parent b3f7350de9
commit d2e21f8723
4 changed files with 33 additions and 32 deletions

View File

@@ -83,6 +83,7 @@ public class MidnightControlsHud extends Hud {
*/
@Override
public void render(MatrixStack matrices, float tickDelta) {
if (this.client == null) return;
if (MidnightControlsConfig.controlsMode == ControlsMode.CONTROLLER && this.client.currentScreen == null) {
int y = bottom(2);
if (scale != 1f) matrices.scale(scale,scale,scale);