Skip to content

Commit

Permalink
map image: if file load fails, autodisable
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 24, 2019
1 parent 2f08b70 commit 1657beb
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -63,6 +63,7 @@ public void render(MapView mapView, MapCanvas mapCanvas, PlayerTag player, UUID
if (actualFile == null) {
actualFile = DenizenMapManager.getActualFile(fileTag);
if (actualFile == null) {
disabled = true;
return;
}
imageIcon = new ImageIcon(actualFile);
Expand Down

0 comments on commit 1657beb

Please sign in to comment.