Quick fix for client not working in multiplayer. (Thanks MrGoober)

This commit is contained in:
UnknownShadow200 2016-04-14 15:29:05 +10:00
parent bdbe0e0337
commit 131b18bc67
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ namespace ClassicalSharp {
Keys = new KeyMap(); Keys = new KeyMap();
Hotkeys = new HotkeyList(); Hotkeys = new HotkeyList();
Hotkeys.LoadSavedHotkeys(); Hotkeys.LoadSavedHotkeys();
picking = new PickingHandler( game ); picking = new PickingHandler( game, this );
} }
void RegisterInputHandlers() { void RegisterInputHandlers() {

View File

@ -10,9 +10,9 @@ namespace ClassicalSharp {
Game game; Game game;
InputHandler input; InputHandler input;
public PickingHandler( Game game ) { public PickingHandler( Game game, InputHandler input ) {
this.game = game; this.game = game;
input = game.InputHandler; this.input = input;
} }
internal DateTime lastClick = DateTime.MinValue; internal DateTime lastClick = DateTime.MinValue;