Fix up null array in keybinding handler

This commit is contained in:
Christian committed 2012-08-15 19:17:21 -04:00
1 parent e76f145b65
commit 0019485aba
2 files changed
+2 -1

No files matched your search

@@ -52,8 +52,10 @@ public class KeyBindingRegistry
*/
public KeyHandler(KeyBinding[] keyBindings, boolean[] repeatings)
{
assert keyBindings.length == repeatings.length : "You need to pass two arrays of identical length";
this.keyBindings = keyBindings;
this.repeatings = repeatings;
this.keyDown = new boolean[keyBindings.length];
}
public KeyBinding[] getKeyBindings()
@@ -126,7 +126,6 @@ public class EntitySpawnPacket extends FMLPacket
((IEntityAdditionalSpawnData)ent).writeSpawnData(dat);
}
return dat.toByteArray();
}