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,8 +77,10 @@ public class RightClick implements Listener {
|
|||||||
}
|
}
|
||||||
CropInstance cropInstance = crop.get();
|
CropInstance cropInstance = crop.get();
|
||||||
PlantingCondition plantingCondition = new PlantingCondition(player, location);
|
PlantingCondition plantingCondition = new PlantingCondition(player, location);
|
||||||
for (Requirement requirement : cropInstance.getRequirements()){
|
if (cropInstance.getRequirements() != null){
|
||||||
if (!requirement.canPlant(plantingCondition)) return;
|
for (Requirement requirement : cropInstance.getRequirements()){
|
||||||
|
if (!requirement.canPlant(plantingCondition)) return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label_out:
|
Label_out:
|
||||||
if (ConfigReader.Season.enable && cropInstance.getSeasons() != null){
|
if (ConfigReader.Season.enable && cropInstance.getSeasons() != null){
|
||||||
|
|||||||
Reference in New Issue
Block a user