Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
79babcc5
Commit
79babcc5
authored
May 07, 2022
by
Bwly999
Browse files
roll back to timer
parent
6149c6f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/game/GameServer.java
View file @
79babcc5
...
...
@@ -205,7 +205,7 @@ public final class GameServer extends KcpServer {
@Override
public
synchronized
void
start
()
{
// Schedule game loop.
ScheduledExecutorService
gameLoop
=
Executors
.
newScheduledThreadPool
(
2
);
Timer
gameLoop
=
new
Timer
(
);
gameLoop
.
scheduleAtFixedRate
(
new
TimerTask
()
{
@Override
public
void
run
()
{
...
...
@@ -215,7 +215,8 @@ public final class GameServer extends KcpServer {
Grasscutter
.
getLogger
().
error
(
Grasscutter
.
getLanguage
().
An_error_occurred_during_game_update
,
e
);
}
}
},
0L
,
1000L
,
TimeUnit
.
MILLISECONDS
);
},
new
Date
(),
1000L
);
super
.
start
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment