9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 08:29:35 +00:00
This commit is contained in:
Xiao-MoMi
2022-07-08 21:55:44 +08:00
parent b8a365c7ab
commit 904767188b
3 changed files with 10 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ public class BreakBlock implements Listener {
Player player =event.getPlayer();
Location location = event.getBlock().getLocation();
for (Integration integration : ConfigReader.Config.integration){
if(!integration.canPlace(location, player)) return;
if(!integration.canBreak(location, player)) return;
}
if(player.getInventory().getItemInMainHand().containsEnchantment(Enchantment.SILK_TOUCH) || player.getInventory().getItemInMainHand().getType() == Material.SHEARS){
event.setCancelled(true);

View File

@@ -45,9 +45,9 @@ crops:
3: customcrops:cabbage_golden_star
gigantic: customcrops:gigantic_cabbage
gigantic-chance: 0.01
requirements:
season:
- spring
season:
- spring
grape:
amount: 2~4
@@ -57,9 +57,8 @@ crops:
3: customcrops:grape_golden_star
#空手收获后返回第几个生长状态
return: customcrops:grape_stage_4
requirements:
season:
- autumn
season:
- autumn
corn:
amount: 1~2
@@ -67,7 +66,6 @@ crops:
1: customcrops:corn
2: customcrops:corn_silver_star
3: customcrops:corn_golden_star
requirements:
season:
- autumn
- summer
season:
- autumn
- summer

View File

@@ -1,5 +1,5 @@
name: CustomCrops
version: '1.5.6'
version: '1.5.7'
main: net.momirealms.customcrops.CustomCrops
api-version: 1.16
depend: