Bugfix: Have the player actually deregister itself from the Keyboard on remove().

This commit is contained in:
Jan Philipp Timme 2014-11-04 19:53:44 +01:00
parent e87ec69e97
commit aedbd55159
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class Keyboard implements KeyListener {
* Remove the given listener from the event notifications. * Remove the given listener from the event notifications.
*/ */
public void removeListener(KeyboardListener listener) { public void removeListener(KeyboardListener listener) {
Keyboard.listener.remove(Keyboard.listener); Keyboard.listener.remove(listener);
} }