From 135369e1921f67ccb157dd8e4cf59de7fab16d39 Mon Sep 17 00:00:00 2001 From: PinkGoosik Date: Fri, 7 Apr 2023 21:23:25 +0500 Subject: [PATCH] fix #9 --- gradle.properties | 2 +- src/main/java/skylands/event/BlockBreakEvent.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index cd0689a..2482842 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ org.gradle.parallel = true # Mod Properties maven_group = ru.pinkgoosik archives_base_name = skylands -mod_version = 0.3.7 +mod_version = 0.3.8 # Dependencies | Check these on https://fabricmc.net/develop minecraft_version = 1.19.4 diff --git a/src/main/java/skylands/event/BlockBreakEvent.java b/src/main/java/skylands/event/BlockBreakEvent.java index 739c297..9947983 100644 --- a/src/main/java/skylands/event/BlockBreakEvent.java +++ b/src/main/java/skylands/event/BlockBreakEvent.java @@ -5,6 +5,7 @@ import net.minecraft.entity.player.PlayerEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; +import skylands.logic.Skylands; import skylands.util.Texts; import skylands.util.WorldProtection; @@ -17,7 +18,7 @@ public static boolean onBreak(World world, PlayerEntity player, BlockPos pos, Bl return false; } - if(state.getBlock() instanceof CropBlock crop && crop.isMature(state)) { + if(Skylands.config.rightClickHarvestEnabled && state.getBlock() instanceof CropBlock crop && crop.isMature(state)) { player.sendMessage(Texts.prefixed("message.skylands.right_click_harvest.tip"), true); }