Expose SyncedKeybind keyCode (#155)

This commit is contained in:
Caedis authored and GitHub committed 2025-07-04 19:39:13 +02:00
1 parent 46e4202479
commit 3f218a0bbe
1 file changed
+5
@@ -265,4 +265,9 @@ public final class SyncedKeybind {
listener.onKeyPressed(player, this);
}
}
@SideOnly(Side.CLIENT)
public int getKeyCode() {
return keybinding != null ? keybinding.getKeyCode() : keyCode;
}
}