Key bindings no longer crash, added PRC sound effect
This commit is contained in:
parent
5fd89a7959
commit
fbbea1b2c9
2 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,7 @@ import net.minecraft.client.settings.KeyBinding;
|
||||||
|
|
||||||
import org.lwjgl.input.Keyboard;
|
import org.lwjgl.input.Keyboard;
|
||||||
|
|
||||||
|
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||||
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
|
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
|
||||||
|
@ -16,7 +17,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class MekanismKeyHandler extends MekKeyHandler
|
public class MekanismKeyHandler extends MekKeyHandler
|
||||||
{
|
{
|
||||||
public static final String keybindCategory = "key.mekanism.category";
|
public static final String keybindCategory = "Mekanism";
|
||||||
public static KeyBinding modeSwitchKey = new KeyBinding("Mekanism " + MekanismUtils.localize("key.mode"), Keyboard.KEY_M, keybindCategory);
|
public static KeyBinding modeSwitchKey = new KeyBinding("Mekanism " + MekanismUtils.localize("key.mode"), Keyboard.KEY_M, keybindCategory);
|
||||||
public static KeyBinding voiceKey = new KeyBinding("Mekanism " + MekanismUtils.localize("key.voice"), Keyboard.KEY_U, keybindCategory);
|
public static KeyBinding voiceKey = new KeyBinding("Mekanism " + MekanismUtils.localize("key.voice"), Keyboard.KEY_U, keybindCategory);
|
||||||
|
|
||||||
|
@ -24,6 +25,9 @@ public class MekanismKeyHandler extends MekKeyHandler
|
||||||
{
|
{
|
||||||
super(new KeyBinding[] {modeSwitchKey, voiceKey}, new boolean[] {false, false});
|
super(new KeyBinding[] {modeSwitchKey, voiceKey}, new boolean[] {false, false});
|
||||||
|
|
||||||
|
ClientRegistry.registerKeyBinding(modeSwitchKey);
|
||||||
|
ClientRegistry.registerKeyBinding(voiceKey);
|
||||||
|
|
||||||
FMLCommonHandler.instance().bus().register(this);
|
FMLCommonHandler.instance().bus().register(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue