tangled
alpha
login
or
join now
codexarchonic.nekoweb.org
/
ProjectInfinity
0
fork
atom
Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
0
fork
atom
overview
issues
6
pulls
pipelines
Avoid using exceptions in control flow
cassian.cc
5 months ago
393217b9
ee8c7f83
+11
-7
1 changed file
expand all
collapse all
unified
split
common
src
main
java
net
lerariemann
infinity
access
MavityInterface.java
+11
-7
common/src/main/java/net/lerariemann/infinity/access/MavityInterface.java
···
8
8
}
9
9
10
10
default double getMavity() {
11
11
-
double mavity;
12
12
-
try {
13
13
-
mavity = ((InfinityOptionsAccess) getWorld()).infinity$getOptions().getMavity();
14
14
-
} catch (Exception e) {
15
15
-
mavity = 1.0;
16
16
-
}
17
17
-
return mavity;
11
11
+
do {
12
12
+
var x = ((InfinityOptionsAccess) getWorld());
13
13
+
if (x == null)
14
14
+
break;
15
15
+
var y = x.infinity$getOptions();
16
16
+
if (y == null)
17
17
+
break;
18
18
+
return y.getMavity();
19
19
+
} while (false);
20
20
+
21
21
+
return 1.0;
18
22
}
19
23
}