mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-03-12 06:39:17 +01:00
Another patch
This commit is contained in:
parent
d8de248fe5
commit
6580a72564
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user