|
@@ -35,10 +35,9 @@ public class Room {
|
|
|
*/
|
|
|
public void startRoomTask() {
|
|
|
|
|
|
- this.scheduler.scheduleAtFixedRate(() -> {
|
|
|
-
|
|
|
- this.performRoomLogic();
|
|
|
- }, 0, 1, TimeUnit.SECONDS);
|
|
|
+
|
|
|
+
|
|
|
+ this.scheduler.scheduleAtFixedRate(this::performRoomLogic, 0, 1, TimeUnit.SECONDS);
|
|
|
}
|
|
|
|
|
|
private void performRoomLogic() {
|