remove trash code
This commit is contained in:
@@ -94,7 +94,6 @@ public class GameLoop extends Thread {
|
|||||||
log.info("Target TPS: {}; Low TPS: {}", tps, lowTps);
|
log.info("Target TPS: {}; Low TPS: {}", tps, lowTps);
|
||||||
int factTps = 0;
|
int factTps = 0;
|
||||||
long lastTime = System.currentTimeMillis();
|
long lastTime = System.currentTimeMillis();
|
||||||
Random rand = new Random();
|
|
||||||
|
|
||||||
while (!isInterrupted()) {
|
while (!isInterrupted()) {
|
||||||
if ((System.currentTimeMillis() - lastTime) > 1000) {
|
if ((System.currentTimeMillis() - lastTime) > 1000) {
|
||||||
@@ -117,11 +116,6 @@ public class GameLoop extends Thread {
|
|||||||
|
|
||||||
playerManager.getBroadcastChannel().sendTimeUpdate(gameTime);
|
playerManager.getBroadcastChannel().sendTimeUpdate(gameTime);
|
||||||
|
|
||||||
PositionAndLookPacket pkt = new PositionAndLookPacket();
|
|
||||||
pkt.setLocation(new Location(0, 65, 0));
|
|
||||||
pkt.setLook(new Look(90, 0));
|
|
||||||
playerManager.getBroadcastChannel().writeAndFlush(pkt);
|
|
||||||
|
|
||||||
/* --- --- --- */
|
/* --- --- --- */
|
||||||
|
|
||||||
factTps++;
|
factTps++;
|
||||||
|
|||||||
Reference in New Issue
Block a user