Minor cleanup

This commit is contained in:
mezz committed 2016-10-27 02:41:42 -07:00
1 parent 09fa488cff
commit 49542b0851
3 files changed
+5 -5

No files matched your search

@@ -46,7 +46,7 @@ public class PropertyFlower<I extends IFlowerType<I>> extends PropertyHelper<I>
IAllele allele = AlleleManager.alleleRegistry.getAllele(value);
if (IAlleleFlowerSpecies.class.isInstance(allele)) {
IAlleleFlowerSpecies alleleValue = IAlleleFlowerSpecies.class.cast(allele);
return (Optional<I>) Optional.of(alleleValue.getType());
return Optional.of((I) alleleValue.getType());
}
return Optional.absent();
}
+2 -2
View File
@@ -72,8 +72,8 @@ public class Mods {
return this.stack(name, 1);
}
public ItemStack stack(final String string, final int i, final int j) {
return new ItemStack(this.item(string), i, j);
public ItemStack stack(final String string, final int amount, final int meta) {
return new ItemStack(this.item(string), amount, meta);
}
public boolean active() {
@@ -35,8 +35,8 @@ public enum LaboratoryMachine implements IMachineType {
return true;
}
public ItemStack get(final int i) {
return new ItemStack(Genetics.packageLabMachine.getBlock(), i, this.ordinal());
public ItemStack get(final int amount) {
return new ItemStack(Genetics.packageLabMachine.getBlock(), amount, this.ordinal());
}
public static class PackageLabMachine extends GeneticMachine.PackageGeneticBase {