MidnightControls 1.5.0 - Hints, Legacy Icons, LibGUI

- Add hints when controller is available, but not enabled (Closes #81)
- Add optional Legacy controller icon pack (thanks @Ivanoks)
- Add LibGUI compatibility
- Fix #75 (Swift Sneak enchantment not working, thanks @andrewaramsay)
- Fix crawling being too fast
- Minify assets by @Madis0 and @RaptaG
This commit is contained in:
Motschen
2022-08-03 12:19:33 +02:00
parent e87ed53485
commit 2e861470d8
8 changed files with 17 additions and 5 deletions

View File

@@ -192,6 +192,13 @@ public class MidnightControlsClient extends MidnightControls implements ClientMo
// if (BINDING_RING.wasPressed()) {
// client.setScreen(new RingScreen());
// }
if (client.world != null && MidnightControlsConfig.enableHints && !MidnightControlsConfig.autoSwitchMode && MidnightControlsConfig.controlsMode == ControlsMode.DEFAULT && MidnightControlsConfig.getController().isGamepad()) {
client.getToastManager().add(SystemToast.create(client, SystemToast.Type.PERIODIC_NOTIFICATION, Text.translatable("midnightcontrols.controller.tutorial.title"),
Text.translatable("midnightcontrols.controller.tutorial.description", Text.translatable("options.title"), Text.translatable("controls.title"),
Text.translatable("midnightcontrols.menu.title.controller"))));
MidnightControlsConfig.enableHints = false;
MidnightControlsConfig.save();
}
}
public void onRender(MinecraftClient client) {
this.input.onRender(client);