Archived
0

remove trash code

This commit is contained in:
2018-04-22 02:18:47 +03:00
parent 6ed9f15c51
commit 9c00210c46

View File

@@ -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++;