Fix mixin compat level being set to JAVA_16

Delete NoValidConstructorException.java (waste of space smh)
This commit is contained in:
ffrann
2021-06-15 23:39:08 -04:00
parent b6b7a67866
commit 09658ffee6
6 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ loader_version=0.11.3
#Fabric api #Fabric api
fabric_version=0.34.10+1.17 fabric_version=0.34.10+1.17
# Mod Properties # Mod Properties
mod_version=1.0.7 mod_version=1.0.8
maven_group=draylar maven_group=draylar
archives_base_name=omega-config archives_base_name=omega-config
@@ -4,7 +4,6 @@ import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import draylar.omegaconfig.api.Comment; import draylar.omegaconfig.api.Comment;
import draylar.omegaconfig.api.Config; import draylar.omegaconfig.api.Config;
import draylar.omegaconfig.exception.NoValidConstructorException;
import draylar.omegaconfig.gson.SyncableExclusionStrategy; import draylar.omegaconfig.gson.SyncableExclusionStrategy;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents; import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
@@ -92,7 +91,7 @@ public class OmegaConfig {
return config; return config;
} catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException exception) { } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException exception) {
exception.printStackTrace(); exception.printStackTrace();
throw new NoValidConstructorException(); throw new RuntimeException("No valid constructor found for: " + configClass.getName());
} }
} }
@@ -1,5 +0,0 @@
package draylar.omegaconfig.exception;
public class NoValidConstructorException extends RuntimeException {
}
@@ -1,7 +1,7 @@
{ {
"schemaVersion": 1, "schemaVersion": 1,
"id": "omega-config", "id": "omega-config",
"version": "1.0.7", "version": "1.0.8",
"name": "OmegaConfig", "name": "OmegaConfig",
"description": "The last config solution you will ever use.", "description": "The last config solution you will ever use.",
"authors": [ "authors": [
@@ -2,7 +2,7 @@
"required": true, "required": true,
"minVersion": "0.8", "minVersion": "0.8",
"package": "draylar.omegaconfig.mixin", "package": "draylar.omegaconfig.mixin",
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_16",
"mixins": [ "mixins": [
], ],
"client": [ "client": [
@@ -2,7 +2,7 @@
"required": true, "required": true,
"minVersion": "0.8", "minVersion": "0.8",
"package": "draylar.omegaconfiggui.mixin", "package": "draylar.omegaconfiggui.mixin",
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_16",
"mixins": [ "mixins": [
"ClickableWidgetInvoker", "ClickableWidgetInvoker",
"ModMenuAccessor" "ModMenuAccessor"