mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 14:53:05 +00:00
Fix #881 Update codebase to Java 7
This commit is contained in:
1 parent
9ecab0fecd
commit
3f0dc9e74f
185 files changed
+427
-414
No files matched your search
@@ -28,7 +28,7 @@ import forestry.api.genetics.IFruitFamily;
|
||||
*/
|
||||
public class FruitProviderRandom extends FruitProviderNone {
|
||||
|
||||
private final Map<ItemStack, Float> products = new HashMap<ItemStack, Float>();
|
||||
private final Map<ItemStack, Float> products = new HashMap<>();
|
||||
private int colour = 0xffffff;
|
||||
|
||||
public FruitProviderRandom(String key, IFruitFamily family, ItemStack product, float modifier) {
|
||||
@@ -48,7 +48,7 @@ public class FruitProviderRandom extends FruitProviderNone {
|
||||
|
||||
@Override
|
||||
public ItemStack[] getFruits(ITreeGenome genome, World world, int x, int y, int z, int ripeningTime) {
|
||||
ArrayList<ItemStack> product = new ArrayList<ItemStack>();
|
||||
ArrayList<ItemStack> product = new ArrayList<>();
|
||||
|
||||
float modeYieldMod = TreeManager.treeRoot.getTreekeepingMode(world).getYieldModifier(genome, 1f);
|
||||
|
||||
|
||||
Reference in new issue
Block a user