Skip to content

Commit

Permalink
better guarding against invalid zoom levels
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericist committed Dec 14, 2019
1 parent 030a424 commit 13269fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/esotericist/mindshaft/zoomState.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ class zoomState {
private static zoomSpec[] zoomlist;

public zoomSpec getZoomSpec() {
int currentzoom = fullscreen ? mindshaftConfig.zoomfs : mindshaftConfig.zoom;

return zoomlist[currentzoom];
return zoomlist[getZoom()];
}

public void initzooms() {
Expand Down

0 comments on commit 13269fd

Please sign in to comment.