diff --git a/dependencies.gradle b/dependencies.gradle index 182cce78..a4c13f07 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,7 +1,7 @@ // Add your dependencies here dependencies { - api("com.github.GTNewHorizons:GTNHLib:0.6.31:dev") + api("com.github.GTNewHorizons:GTNHLib:0.6.38:dev") implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.56-GTNH:dev") testImplementation(platform('org.junit:junit-bom:5.9.2')) diff --git a/src/main/java/com/gtnewhorizon/structurelib/CommonProxy.java b/src/main/java/com/gtnewhorizon/structurelib/CommonProxy.java index 26b7dce2..4328fcb6 100644 --- a/src/main/java/com/gtnewhorizon/structurelib/CommonProxy.java +++ b/src/main/java/com/gtnewhorizon/structurelib/CommonProxy.java @@ -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);