mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-28 14:37:31 +02:00
Prevent lambda allocation
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
7f463cdf94
commit
cffbf47b94
@ -106,13 +106,13 @@ public final class UpdateManager {
|
||||
*/
|
||||
private void serverTick(long tickStart) {
|
||||
// Tick all instances
|
||||
MinecraftServer.getInstanceManager().getInstances().forEach(instance -> {
|
||||
for (Instance instance : MinecraftServer.getInstanceManager().getInstances()) {
|
||||
try {
|
||||
instance.tick(tickStart);
|
||||
} catch (Exception e) {
|
||||
MinecraftServer.getExceptionManager().handleException(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Tick all chunks (and entities inside)
|
||||
this.threadDispatcher.updateAndAwait(tickStart);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user