mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 15:25:08 +01:00
- Fix diagonal movement speed (PR #113, thanks @dogtopus, closes #42) - Toggle Sprint and Toggle Sneak can now be enabled separately just for controllers (closes #102) - Added button binding profile support (closes #107) - Fix button binding tooltips intersecting with chat on large GUI scales (closes #106) - Add assets for non-licensed (numbered) PlayStation controllers (closes #110) - Fix reacharound outline color - Fix pixel error in legacy icons (closes #84) - Fix creative flight being slow with Bedrockify installed (just disables the "disableFlyingMomentum" option on launch)
35 lines
957 B
Java
35 lines
957 B
Java
/*
|
|
* Copyright © 2022 Motschen <motschen@midnightdust.eu>
|
|
*
|
|
* This file is part of midnightcontrols.
|
|
*
|
|
* Licensed under the MIT license. For more information,
|
|
* see the LICENSE file.
|
|
*/
|
|
|
|
package eu.midnightdust.midnightcontrols.client.compat;
|
|
|
|
import eu.midnightdust.midnightcontrols.client.MidnightControlsClient;
|
|
import me.juancarloscp52.bedrockify.client.BedrockifyClient;
|
|
import me.juancarloscp52.bedrockify.client.BedrockifyClientSettings;
|
|
import net.minecraft.client.gui.screen.Screen;
|
|
import org.aperlambda.lambdacommon.utils.LambdaReflection;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
import java.util.Optional;
|
|
|
|
/**
|
|
* Represents HQM compatibility handler.
|
|
*
|
|
* @author Motschen
|
|
* @version 1.7.0
|
|
* @since 1.7.0
|
|
*/
|
|
public class BedrockifyCompat implements CompatHandler {
|
|
|
|
@Override
|
|
public void handle(@NotNull MidnightControlsClient mod) {
|
|
BedrockifyClient.getInstance().settings.disableFlyingMomentum = false;
|
|
}
|
|
}
|