Short story decided to port my 1.4.7 forge to 1.5.2 and being the idiot i am i am probably missing something obvious but when i press any of my keybinded buttons or the buttons i used with keyboard method nothing actually happens.
I know modifying GuiInGame is kinda dumb but eh didnt have the time at first and now too lazy to change it.
what i have done :
added
Code:
private boolean keyStates[];
after public class
then
Code:
keyStates = new boolean [256];
on public GuiInGame
then
Code:
public boolean checkKey(int i)
{
if(mc.currentScreen != null)
{
return false;
}
if(Keyboard.isKeyDown(i) != keyStates[i])
{
return keyStates[i] = !keyStates[i];
}else{
return false;
}
}
after
Code:
this.drawString(fontrenderer, String.format("ws: %.3f, fs: %.3f, g: %b, fl: %d", new Object[] {Float.valueOf(this.mc.thePlayer.capabilities.getWalkSpeed()), Float.valueOf(this.mc.thePlayer.capabilities.getFlySpeed()), Boolean.valueOf(this.mc.thePlayer.onGround), Integer.valueOf(this.mc.theWorld.getHeightValue(k3, k2))}), 2, 104, 14737632);
GL11.glPopMatrix();
this.mc.mcProfiler.endSection();
i added
Code:
}else{
if(checkKey(Keybinds.keybindFullBright))
{
Hacks.fullbright = !Hacks.fullbright;
if(Hacks.fullbright)
{
mc.gameSettings.gammaSetting = 100000F;
}else
{
mc.gameSettings.gammaSetting = 1F;
}
}
Keybinds thing can be modified into Keyboard.KEY_B but still fails and is declared and stuff.
Any help would be nice but probably something obvious im missing.
---------- Post added at 03:48 PM ---------- Previous post was at 02:37 PM ----------
Nevermind i solved it it was just forge stealing my methods.