Another patch

This commit is contained in:
Brianna O'Keefe 2018-06-03 22:32:14 -04:00
parent d8de248fe5
commit 6580a72564
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ public class FarmingHandler {
for (int fz = -radius; fz <= radius; fz++) {
Block b2 = block.getWorld().getBlockAt(bx + fx, by + fy, bz + fz);
if (!(b2.getState().getData() instanceof Crops) && !b2.getType().name().toLowerCase().contains("melon")) continue;
if (!(b2.getState().getData() instanceof Crops)) continue;
if (add)
crops.add(b2);

View File

@ -28,7 +28,7 @@ public class GrowthHandler {
for (Crop crop : liveCrops.values()) {
if (!(crop.getLocation().getBlock().getState().getData() instanceof Crops) && !crop.getLocation().getBlock().getType().name().toLowerCase().contains("melon")) continue;
if (!(crop.getLocation().getBlock().getState().getData() instanceof Crops)) continue;
//ToDO: This should be in config.
int cap = (int)Math.ceil(60 / crop.getFarm().getLevel().getSpeedMultiplier()) - crop.getTicksLived();