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); }