mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fixed Jetpack key bindings (also fixed crash)
This commit is contained in:
1 parent
fbbea1b2c9
commit
1e643a9d6f
2 files changed
+9
-8
No files matched your search
@@ -7,6 +7,7 @@ import mekanism.client.voice.VoiceClient;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.network.PacketKey.KeyMessage;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.settings.KeyBinding;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
import org.lwjgl.input.Keyboard;
|
||||
@@ -30,9 +31,9 @@ public class MekanismClient extends Mekanism
|
||||
|
||||
public static long ticksPassed = 0;
|
||||
|
||||
public static void updateKey(int key, int type)
|
||||
public static void updateKey(KeyBinding key, int type)
|
||||
{
|
||||
boolean down = Minecraft.getMinecraft().currentScreen == null ? Keyboard.isKeyDown(key) : false;
|
||||
boolean down = Minecraft.getMinecraft().currentScreen == null ? key.getIsKeyPressed() : false;
|
||||
|
||||
if(down != keyMap.has(Minecraft.getMinecraft().thePlayer, type))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user