Removed some compilation warnings.
This commit is contained in:
parent
7836986f04
commit
6ccc3c9e36
1 changed files with 3 additions and 3 deletions
|
@ -198,7 +198,7 @@ public class BuildCraftCore {
|
|||
try {
|
||||
PowerFramework.currentFramework = (PowerFramework) Class
|
||||
.forName(prefix + "buildcraft.energy.PneumaticPowerFramework")
|
||||
.getConstructor(null).newInstance(null);
|
||||
.getConstructor().newInstance();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -209,8 +209,8 @@ public class BuildCraftCore {
|
|||
className = className.replace("net.minecraft.src.", "");
|
||||
|
||||
PowerFramework.currentFramework = (PowerFramework) Class
|
||||
.forName(prefix + className).getConstructor(null)
|
||||
.newInstance(null);
|
||||
.forName(prefix + className).getConstructor()
|
||||
.newInstance();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
PowerFramework.currentFramework = new RedstonePowerFramework();
|
||||
|
|
Loading…
Reference in a new issue