Skip to content

Commit 2198897

Browse files
committed
spotless
1 parent e60d926 commit 2198897

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/main/java/net/rptools/maptool/client/ui/zone/gdx/GdxRenderer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ public void render() {
281281
ScreenUtils.clear(Color.BLACK);
282282
try {
283283
doRendering();
284-
} catch(Exception ex) {
284+
} catch (Exception ex) {
285285
log.warn(ex);
286-
}
286+
}
287287
}
288288

289289
private void ensureTtfFont() {
@@ -357,7 +357,7 @@ else if (MapTool.getCampaign().isBeingSerialized())
357357

358358
hudTextRenderer.drawString(
359359
"FPS: " + Gdx.graphics.getFramesPerSecond(), width - 30, height - 32);
360-
hudTextRenderer.drawString("Draws: " + batch.renderCalls, width- 30, height - 16);
360+
hudTextRenderer.drawString("Draws: " + batch.renderCalls, width - 30, height - 16);
361361

362362
batch.end();
363363
collectTimerResults();

src/main/java/net/rptools/maptool/client/ui/zone/gdx/ZoneCache.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.badlogic.gdx.graphics.Texture;
2121
import com.badlogic.gdx.graphics.g2d.*;
2222
import com.badlogic.gdx.utils.Disposable;
23-
import com.badlogic.gdx.utils.GdxRuntimeException;
2423
import com.badlogic.gdx.video.VideoPlayer;
2524
import java.awt.*;
2625
import java.awt.image.BufferedImage;
@@ -84,8 +83,7 @@ public ZoneView getZoneView() {
8483

8584
public void setSharedAtlas(TextureAtlas atlas) {
8685
sharedAtlas = atlas;
87-
if(atlas == null)
88-
return;
86+
if (atlas == null) return;
8987
TRANSFERING_SPRITE = new Sprite(sharedAtlas.findRegion("unknown"));
9088
BROKEN_SPRITE = new Sprite(sharedAtlas.findRegion("broken"));
9189
}
@@ -237,14 +235,14 @@ public Sprite getSprite(String name) {
237235
region = fetch(name);
238236
}
239237

240-
if(region == null) {
238+
if (region == null) {
241239
sprite = bigSprites.get(name);
242240
} else {
243241
sprite = new Sprite(region);
244242
sprite.setSize(region.getRegionWidth(), region.getRegionHeight());
245243
}
246244

247-
if(sprite == null) {
245+
if (sprite == null) {
248246
return BROKEN_SPRITE;
249247
}
250248

0 commit comments

Comments
 (0)