From ea2485b2eddb61f45459c7773ad819f99e6ac0b9 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Wed, 21 May 2025 21:06:47 -0700 Subject: [PATCH 1/2] Add CF Project ID (#7) --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index ad74e02..45a5100 100644 --- a/gradle.properties +++ b/gradle.properties @@ -166,7 +166,7 @@ curseForgeProjectId = # and the name is the CurseForge project slug of the other mod. # Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft # Note: UniMixins is automatically set as a required dependency if usesMixins = true. -curseForgeRelations = +curseForgeRelations = 1238321 # Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older # projects. New projects should not use this parameter. From eca345b74764a59798ccfcbc3b6196b35f0665c7 Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Thu, 12 Jun 2025 19:02:14 +0200 Subject: [PATCH 2/2] unbind keybind by default (#9) --- .../java/baubles/common/event/KeyHandler.java | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/main/java/baubles/common/event/KeyHandler.java b/src/main/java/baubles/common/event/KeyHandler.java index 3a02827..6c6cb43 100644 --- a/src/main/java/baubles/common/event/KeyHandler.java +++ b/src/main/java/baubles/common/event/KeyHandler.java @@ -1,36 +1,28 @@ package baubles.common.event; +import cpw.mods.fml.common.gameevent.InputEvent; import org.lwjgl.input.Keyboard; import baubles.common.network.PacketHandler; import baubles.common.network.PacketOpenBaublesInventory; -import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.common.eventhandler.SubscribeEvent; -import cpw.mods.fml.common.gameevent.TickEvent.Phase; -import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.settings.KeyBinding; import net.minecraft.util.StatCollector; public class KeyHandler { - - public KeyBinding key = new KeyBinding(StatCollector.translateToLocal("keybind.baublesinventory"), - Keyboard.KEY_B, "key.categories.inventory"); - + + public KeyBinding key = new KeyBinding(StatCollector.translateToLocal("keybind.baublesinventory"), + Keyboard.KEY_NONE, "key.categories.inventory"); + public KeyHandler() { ClientRegistry.registerKeyBinding(key); } - @SideOnly(value=Side.CLIENT) @SubscribeEvent - public void playerTick(PlayerTickEvent event) { - if (event.side == Side.SERVER) return; - if (event.phase == Phase.START ) { - if (key.getIsKeyPressed() && FMLClientHandler.instance().getClient().inGameHasFocus) { - PacketHandler.INSTANCE.sendToServer(new PacketOpenBaublesInventory(event.player)); - } + public void onKeyEvent(InputEvent.KeyInputEvent event) { + if (key.getIsKeyPressed()) { + PacketHandler.INSTANCE.sendToServer(new PacketOpenBaublesInventory()); } } }