mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-22 16:39:36 +00:00
bug fix
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user