Removed multi catches (They are only in Java 7+)
This commit is contained in:
parent
23ae45a386
commit
a107bb4d17
|
@ -19,7 +19,7 @@ public class BOPBiome<T extends BOPBiomeDecorator> extends BiomeGenBase
|
|||
{
|
||||
this.theBiomeDecorator = clazz.newInstance();
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ public class BOPBiomeDecorator<T extends BiomeFeatures> extends BiomeDecorator
|
|||
{
|
||||
this.bopFeatures = biomeFeaturesClass.newInstance();
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class BiomeFeatures
|
|||
{
|
||||
return this.getClass().getField(featureName).get(this);
|
||||
}
|
||||
catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new NoSuchFeatureException(featureName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue