fix syncedkeybind update

This commit is contained in:
Caedis committed 2025-07-15 12:01:07 -05:00
1 parent e7086a3472
commit 73a4fda220
2 files changed
+3 -2

No files matched your search

@@ -113,7 +113,8 @@ public class CommonProxy {
private static final SyncedKeybind MODE_SWAP_KEY = SyncedKeybind.createConfigurable(
"item.structurelib.constructableTrigger.keys.cycleMode",
"item.structurelib.constructableTrigger.keyCategory",
0).registerGlobalListener((entityPlayerMP, syncedKeybind) -> {
0).registerGlobalListener((entityPlayerMP, syncedKeybind, isDown) -> {
if (!isDown) return;
final ItemStack held = entityPlayerMP.getHeldItem();
if (held != null && held.getItem() instanceof ItemConstructableTrigger) {
ItemConstructableTrigger.cycleMode(held);