forked from Clones/Controlify
close #17
This commit is contained in:
@ -164,6 +164,10 @@ public class YACLHelper {
|
||||
.controller(opt -> new BindButtonController(opt, controller))
|
||||
.tooltip(control.description())
|
||||
.instant(true)
|
||||
.listener((opt, bind) -> { // yacl instant options have a bug where they don't save
|
||||
opt.applyValue();
|
||||
controlify.config().save();
|
||||
})
|
||||
.build());
|
||||
}
|
||||
category.group(controlsGroup.build());
|
||||
|
@ -1,6 +1,5 @@
|
||||
package dev.isxander.controlify.ingame;
|
||||
|
||||
import com.mojang.blaze3d.Blaze3D;
|
||||
import dev.isxander.controlify.InputMode;
|
||||
import dev.isxander.controlify.controller.Controller;
|
||||
import dev.isxander.controlify.event.ControlifyEvents;
|
||||
@ -12,7 +11,6 @@ public class InGameInputHandler {
|
||||
private final Minecraft minecraft;
|
||||
|
||||
private double lookInputX, lookInputY;
|
||||
private double deltaTime;
|
||||
|
||||
public InGameInputHandler(Controller controller) {
|
||||
this.controller = controller;
|
||||
|
Reference in New Issue
Block a user