mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix up null array in keybinding handler
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user