Fixes bug which let phase conveyor operate with any non-zero power; now requires full power to work (#672)

* Fixes bug which let phase conveyor operate with any non-zero power; now requires full power to work

* Fixed normal bridge, deprecated method
This commit is contained in:
David Held
2019-09-16 16:00:06 -07:00
committed by Anuken
parent 4b824f7a4c
commit 4dc55e5594
2 changed files with 3 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ public class Plugins{
URLClassLoader classLoader = new URLClassLoader(new URL[]{jar.file().toURI().toURL()}, ClassLoader.getSystemClassLoader());
Class<?> main = classLoader.loadClass(meta.main);
metas.put(main, meta);
return new LoadedPlugin(jar, zip, (Plugin)main.newInstance(), meta);
return new LoadedPlugin(jar, zip, (Plugin)main.getDeclaredConstructor().newInstance(), meta);
}
/** Represents a plugin that has been loaded from a jar file.*/