Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ org.gradle.configuration-cache=false

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=26.2
loader_version=0.19.3
loom_version=1.17-SNAPSHOT
minecraft_version=26.3
loader_version=0.19.5
loom_version=1.17.21

# Mod Properties
mod_version=26.2-2.3.0-fabric
mod_version=26.3-2.3.0-fabric
maven_group=com.chaosthedude.notes
archives_base_name=notes

# Dependencies
fabric_api_version=0.152.1+26.2
fabric_api_version=0.160.6+26.3
5 changes: 3 additions & 2 deletions src/main/java/com/chaosthedude/notes/Notes.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.lwjgl.glfw.GLFW;

import com.chaosthedude.notes.config.NotesConfig;
import com.chaosthedude.notes.gui.SelectNoteScreen;
Expand All @@ -24,11 +23,13 @@ public class Notes implements ClientModInitializer {

private static KeyMapping openNotes;

private static final int KEY_N = 17; // InputConstants keyboard key code for 'n'

@Override
public void onInitializeClient() {
NotesConfig.load();

openNotes = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.openNotes", GLFW.GLFW_KEY_N, new KeyMapping.Category(Identifier.fromNamespaceAndPath(MODID, "keys"))));
openNotes = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.openNotes", KEY_N, new KeyMapping.Category(Identifier.fromNamespaceAndPath(MODID, "keys"))));

ClientTickEvents.END_CLIENT_TICK.register(client -> {
while (openNotes.isDown()) {
Expand Down