mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 23:25:10 +01:00
Fix 1.18
This commit is contained in:
@@ -195,9 +195,9 @@ public class MidnightControlsClient extends MidnightControls implements ClientMo
|
|||||||
// client.setScreen(new RingScreen());
|
// client.setScreen(new RingScreen());
|
||||||
// }
|
// }
|
||||||
if (client.world != null && MidnightControlsConfig.enableHints && !MidnightControlsConfig.autoSwitchMode && MidnightControlsConfig.controlsMode == ControlsMode.DEFAULT && MidnightControlsConfig.getController().isGamepad()) {
|
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"),
|
client.getToastManager().add(SystemToast.create(client, SystemToast.Type.PERIODIC_NOTIFICATION, new TranslatableText("midnightcontrols.controller.tutorial.title"),
|
||||||
Text.translatable("midnightcontrols.controller.tutorial.description", Text.translatable("options.title"), Text.translatable("controls.title"),
|
new TranslatableText("midnightcontrols.controller.tutorial.description", new TranslatableText("options.title"), new TranslatableText("controls.title"),
|
||||||
Text.translatable("midnightcontrols.menu.title.controller"))));
|
new TranslatableText("midnightcontrols.menu.title.controller"))));
|
||||||
MidnightControlsConfig.enableHints = false;
|
MidnightControlsConfig.enableHints = false;
|
||||||
MidnightControlsConfig.save();
|
MidnightControlsConfig.save();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ public final class MovementHandler implements PressAction {
|
|||||||
|
|
||||||
// Slowing down if sneaking or crawling.
|
// Slowing down if sneaking or crawling.
|
||||||
if (client.player.shouldSlowDown()) {
|
if (client.player.shouldSlowDown()) {
|
||||||
this.movementForward *= MathHelper.clamp(0.3F + EnchantmentHelper.getSwiftSneakSpeedBoost(client.player), 0.0F, 1.0F);
|
this.movementForward *= MathHelper.clamp(0.3F, 0.0F, 1.0F);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Handle sideways movement.
|
// Handle sideways movement.
|
||||||
@@ -101,7 +101,7 @@ public final class MovementHandler implements PressAction {
|
|||||||
|
|
||||||
// Slowing down if sneaking or crawling.
|
// Slowing down if sneaking or crawling.
|
||||||
if (client.player.shouldSlowDown()) {
|
if (client.player.shouldSlowDown()) {
|
||||||
this.movementSideways *= MathHelper.clamp(0.3F + EnchantmentHelper.getSwiftSneakSpeedBoost(client.player), 0.0F, 1.0F);
|
this.movementSideways *= MathHelper.clamp(0.3F, 0.0F, 1.0F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 9,
|
"pack_format": 8,
|
||||||
"description": "Makes the controller buttons look like from Bedrock Edition"
|
"description": "Makes the controller buttons look like from Bedrock Edition"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 9,
|
"pack_format": 8,
|
||||||
"description": "Makes the controller buttons look like from Console Edition"
|
"description": "Makes the controller buttons look like from Console Edition"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user