@@ -92,10 +92,11 @@ public class Iris {
92
92
private static PipelineManager pipelineManager ;
93
93
private static IrisConfig irisConfig ;
94
94
private static FileSystem zipFileSystem ;
95
- private static final KeyMapping reloadKeybind = new KeyMapping ("iris.keybind.reload" , InputConstants .Type .KEYSYM , GLFW .GLFW_KEY_R , "iris.keybinds" );
96
- private static final KeyMapping toggleShadersKeybind = new KeyMapping ("iris.keybind.toggleShaders" , InputConstants .Type .KEYSYM , GLFW .GLFW_KEY_K , "iris.keybinds" );
97
- private static final KeyMapping shaderpackScreenKeybind = new KeyMapping ("iris.keybind.shaderPackSelection" , InputConstants .Type .KEYSYM , GLFW .GLFW_KEY_O , "iris.keybinds" );
98
- private static final KeyMapping wireframeKeybind = new KeyMapping ("iris.keybind.wireframe" , InputConstants .Type .KEYSYM , InputConstants .UNKNOWN .getValue (), "iris.keybinds" );
95
+
96
+ private static KeyMapping reloadKeybind ;
97
+ private static KeyMapping toggleShadersKeybind ;
98
+ private static KeyMapping shaderpackScreenKeybind ;
99
+ private static KeyMapping wireframeKeybind ;
99
100
100
101
private static final Map <String , String > shaderPackOptionQueue = new HashMap <>();
101
102
// Flag variable used when reloading
@@ -132,6 +133,11 @@ public Iris() {
132
133
* <p>This is called right before options are loaded, so we can add key bindings here.</p>
133
134
*/
134
135
public static void onEarlyInitialize () {
136
+ reloadKeybind = new KeyMapping ("iris.keybind.reload" , InputConstants .Type .KEYSYM , GLFW .GLFW_KEY_R , "iris.keybinds" );
137
+ toggleShadersKeybind = new KeyMapping ("iris.keybind.toggleShaders" , InputConstants .Type .KEYSYM , GLFW .GLFW_KEY_K , "iris.keybinds" );
138
+ shaderpackScreenKeybind = new KeyMapping ("iris.keybind.shaderPackSelection" , InputConstants .Type .KEYSYM , GLFW .GLFW_KEY_O , "iris.keybinds" );
139
+ wireframeKeybind = new KeyMapping ("iris.keybind.wireframe" , InputConstants .Type .KEYSYM , InputConstants .UNKNOWN .getValue (), "iris.keybinds" );
140
+
135
141
try {
136
142
if (!Files .exists (getShaderpacksDirectory ())) {
137
143
Files .createDirectories (getShaderpacksDirectory ());
0 commit comments