Backport contextual key bindings to 1.12.2 and below (closes #478)

This commit is contained in:
Jonas Herzig
2021-02-28 11:55:58 +01:00
parent dda6bd41b6
commit 537795f9ca
4 changed files with 32 additions and 12 deletions

View File

@@ -186,18 +186,14 @@ public class ReplayModReplay implements Module {
}
}
replayHandler = new ReplayHandler(replayFile, asyncMode);
//#if MC>=11400
KeyBinding.updateKeysByCode(); // see Mixin_ContextualKeyBindings
//#endif
return replayHandler;
}
public void forcefullyStopReplay() {
replayHandler = null;
//#if MC>=11400
KeyBinding.updateKeysByCode(); // see Mixin_ContextualKeyBindings
//#endif
}
public ReplayMod getCore() {