mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 11:49:44 +02:00
Synchronized für Spieler Thread
This commit is contained in:
@@ -27,7 +27,7 @@ public class KeyBindings {
|
|||||||
GameInterface.getGamePanel().addKeyListener(kl);
|
GameInterface.getGamePanel().addKeyListener(kl);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void step(final char d, final int i) {
|
private synchronized void step(final char d, final int i) {
|
||||||
final Player playerX = Query.getPlayer();
|
final Player playerX = Query.getPlayer();
|
||||||
final int stepx = 25;
|
final int stepx = 25;
|
||||||
final int stepy = 25;
|
final int stepy = 25;
|
||||||
|
|||||||
Reference in New Issue
Block a user