diff options
Diffstat (limited to 'spark-common/src')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java b/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java index a4ae848..491b7d3 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java +++ b/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java @@ -119,7 +119,7 @@ public class SparkPlatform { } public void enable() { - if (this.enabled.compareAndSet(false, true)) { + if (!this.enabled.compareAndSet(false, true)) { throw new RuntimeException("Platform has already been enabled!"); } |