Skip to content

Commit 3cfdc1f

Browse files
committed
Clean up block.
1 parent 300bf22 commit 3cfdc1f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.byteskript</groupId>
88
<artifactId>byteskript</artifactId>
9-
<version>1.0.32</version>
9+
<version>1.0.33</version>
1010
<name>ByteSkript</name>
1111
<description>A compiled JVM implementation of the Skript language.</description>
1212

src/main/java/org/byteskript/skript/runtime/Skript.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ public Script loadScript(final File source, final String name)
989989
}
990990

991991
//region Output
992-
993992
/**
994993
* Set the current print stream used by the `print` effect.
995994
* This can be used to redirect output in a particular state.

src/main/java/skript.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static double to_radians(double number) {
7373
return Math.toRadians(number);
7474
}
7575

76-
public static Number abs(Object object) { // the instance-checks make sure the correct absolute is used
76+
public static Number abs(Number object) { // the instance-checks make sure the correct absolute is used
7777
if (object == null) return 0;
7878
if (object instanceof Byte number) return Math.abs(number);
7979
if (object instanceof Short number) return Math.abs(number);
@@ -96,9 +96,7 @@ public static double newton_root(Object object, Object accuracy) {
9696
throw new ScriptRuntimeError("Unable to root(" + object + ") - not a number.");
9797
final double value = number.doubleValue();
9898
double result = Double.longBitsToDouble(((Double.doubleToLongBits(value) - (1L << 52)) >> 1) + (1L << 61));
99-
for (int i = 0; i < times; i++) {
100-
result = (result + value / result) * 0.5;
101-
}
99+
for (int i = 0; i < times; i++) result = (result + value / result) * 0.5;
102100
return result;
103101
}
104102

0 commit comments

Comments
 (0)