mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 05:35:37 +00:00
Fix some deprecations
This commit is contained in:
1 parent
4e4c72ee22
commit
088e8bcf61
6 files changed
+5
-6
No files matched your search
@@ -230,7 +230,7 @@ public abstract class MixinServiceAbstract implements IMixinService {
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<IMixinPlatformAgent> agentClass = (Class<IMixinPlatformAgent>)this.getClassProvider().findClass(agentClassName, false);
|
||||
IMixinPlatformAgent agent = agentClass.newInstance();
|
||||
IMixinPlatformAgent agent = agentClass.getDeclaredConstructor().newInstance();
|
||||
if (agent instanceof IMixinPlatformServiceAgent) {
|
||||
this.serviceAgents.add((IMixinPlatformServiceAgent)agent);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user