mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-02-21 23:11:44 +01:00
Removed collection restriction.
This commit is contained in:
parent
0ede8eee7b
commit
f1cc08c175
@ -50,8 +50,6 @@ public class ModuleAutoCollect extends Module {
|
||||
}
|
||||
|
||||
private void collectCrops(Farm farm) {
|
||||
HashMap<Material, Boolean> hasDropped = new HashMap();
|
||||
|
||||
for (Block block : getCrops(farm, true)) {
|
||||
Material mat = block.getType();
|
||||
if (!CropType.isCrop(mat)) continue;
|
||||
@ -59,8 +57,7 @@ public class ModuleAutoCollect extends Module {
|
||||
if (!BlockUtils.isCropFullyGrown(block)) {
|
||||
// Add to GrowthTask
|
||||
plugin.getGrowthTask().addLiveCrop(block.getLocation(), new Crop(block.getLocation(), farm));
|
||||
} else if (isEnabled(farm) && !hasDropped.getOrDefault(mat, false) && doCropDrop(farm, mat)) {
|
||||
hasDropped.put(mat, true);
|
||||
} else if (isEnabled(farm) && doCropDrop(farm, mat)) {
|
||||
|
||||
if (farm.getLevel().isAutoReplant()) {
|
||||
BlockUtils.resetGrowthStage(block);
|
||||
|
Loading…
Reference in New Issue
Block a user