mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-21 20:42:09 +00:00
fix syncedkeybind update
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user