Skip to content

Commit

Permalink
fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Apr 7, 2023
1 parent ff799d3 commit 135369e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/skylands/event/BlockBreakEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}

Expand Down

0 comments on commit 135369e

Please sign in to comment.