9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00
This commit is contained in:
Xiao-MoMi
2022-07-09 01:58:05 +08:00
parent 904767188b
commit 23b4f70b26

View File

@@ -77,9 +77,11 @@ public class RightClick implements Listener {
}
CropInstance cropInstance = crop.get();
PlantingCondition plantingCondition = new PlantingCondition(player, location);
if (cropInstance.getRequirements() != null){
for (Requirement requirement : cropInstance.getRequirements()){
if (!requirement.canPlant(plantingCondition)) return;
}
}
Label_out:
if (ConfigReader.Season.enable && cropInstance.getSeasons() != null){
for (String season : cropInstance.getSeasons()) {