Skip to content

Commit

Permalink
fix ultima god
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Nov 18, 2023
1 parent bc3921f commit 29bca50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/de/melanx/ultimatools/util/ToolEffects.java
Expand Up @@ -233,10 +233,8 @@ public static boolean generateOre(Level level, Player player, InteractionHand ha

public static boolean ultimate(Level level, Player player, InteractionHand hand, BlockPos pos, Direction face) {
BlockState block = level.getBlockState(pos);
if (!block.is(BlockTags.DIRT) && !block.is(Blocks.GRASS_BLOCK) && !(block instanceof BonemealableBlock)) {
if (player.isShiftKeyDown()) {
return placeWater(level, player, hand, pos, face);
}
if (!block.is(BlockTags.DIRT) && !block.is(Blocks.GRASS_BLOCK) && !(block.getBlock() instanceof BonemealableBlock) && player.isShiftKeyDown()) {
return placeWater(level, player, hand, pos, face);
} else if (!player.isShiftKeyDown()) {
if (block.is(BlockTags.DIRT)) {
BlockState newState = Blocks.GRASS_BLOCK.defaultBlockState();
Expand Down

0 comments on commit 29bca50

Please sign in to comment.