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

This commit is contained in:
JPT committed 2014-11-04 19:53:44 +01:00
1 parent e87ec69e97
commit aedbd55159
1 file changed
+1 -1
@@ -67,7 +67,7 @@ public class Keyboard implements KeyListener {
* Remove the given listener from the event notifications.
*/
public void removeListener(KeyboardListener listener) {
Keyboard.listener.remove(Keyboard.listener);
Keyboard.listener.remove(listener);
}