Replaced all instances of Guava's Optional type with Java 8's Optional type, as discussed in #81. (#90)
This commit is contained in:
committed by
Sebastian Hartte
parent
c2a239a12f
commit
e276aa682f
@@ -48,8 +48,8 @@ public final class QuartzWorldGen implements IWorldGenerator
|
||||
final IBlockDefinition oreDefinition = blocks.quartzOre();
|
||||
final IBlockDefinition chargedDefinition = blocks.quartzOreCharged();
|
||||
|
||||
final Block ore = oreDefinition.maybeBlock().orNull();
|
||||
final Block charged = chargedDefinition.maybeBlock().orNull();
|
||||
final Block ore = oreDefinition.maybeBlock().orElse( null );
|
||||
final Block charged = chargedDefinition.maybeBlock().orElse( null );
|
||||
|
||||
this.oreNormal = new WorldGenMinable( ore.getDefaultState(), AEConfig.instance.quartzOresPerCluster );
|
||||
this.oreCharged = new WorldGenMinable( charged.getDefaultState(), AEConfig.instance.quartzOresPerCluster );
|
||||
|
||||
Reference in New Issue
Block a user