mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-12 00:07:27 +00:00
Merge remote-tracking branch 'ReignOfFROZE/master' into dev
# Conflicts: # dependencies.gradle
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,4 @@
|
||||
// Add any additional repositiroes for your dependencies here
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
@@ -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