- Avoid using an unnecessary variable.

This commit is contained in:
Agetian
2017-07-12 04:59:48 +00:00
parent df5d0d3c81
commit 10ad9785e1

View File

@@ -59,13 +59,11 @@ public class PuzzleScreen extends LaunchScreen {
@Override
public void run() {
// Load selected puzzle
final Puzzle selected = result;
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.setStartGameHook(new Runnable() {
@Override
public final void run() {
selected.applyToGame(hostedMatch.getGame());
result.applyToGame(hostedMatch.getGame());
}
});