MidnightControls 1.3.0 - Fixes and Improvements

- Merge #48 (Split rotation speed in X and Y, thanks to @ronniedude)
- Merge #47 (Korean translations by @gyular)
- Fix #50 (Stack pick-up problems in survival mode)
- Add some compatibility measures for EMI (Will likely be improved further in the future)
- Remove all REI-related code (not working anyway, EMI is better)
- Possibly fix #41 (Random crashes when changing keybinds)
This commit is contained in:
Motschen
2022-06-30 21:29:59 +02:00
parent 3ddae57eab
commit df7c7bbdad
14 changed files with 53 additions and 513 deletions

View File

@@ -267,7 +267,7 @@ public class MidnightInput {
}
}
private void handleButton(@NotNull MinecraftClient client, int button, int action, boolean state) {
public void handleButton(@NotNull MinecraftClient client, int button, int action, boolean state) {
if (this.controlsInput != null && this.controlsInput.focusedBinding != null) {
if (action == 0 && !this.controlsInput.currentButtons.contains(button)) {
this.controlsInput.currentButtons.add(button);
@@ -549,7 +549,7 @@ public class MidnightInput {
}
}
private boolean handleAButton(@NotNull Screen screen, @NotNull Element focused) {
public boolean handleAButton(@NotNull Screen screen, @NotNull Element focused) {
if (focused instanceof PressableWidget widget) {
widget.playDownSound(MinecraftClient.getInstance().getSoundManager());
widget.onPress();