Skip to content

Commit

Permalink
fix: remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamalam360 committed Dec 30, 2023
1 parent a646cee commit 96d3a2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,11 @@ private static InteractionResult onBlockUse(Player player, Level world, Interact

Block lookingFor = state.getBlock() instanceof SugarCaneBlock ? Blocks.SUGAR_CANE : Blocks.CACTUS;
BlockPos bottom = hitResult.getBlockPos().below();
System.out.println("below is " + world.getBlockState(bottom).getBlock());
System.out.println("looking for " + lookingFor);
while (world.getBlockState(bottom).is(lookingFor)) {
bottom = bottom.below();
System.out.println("below is " + world.getBlockState(bottom).getBlock());
}

System.out.println("exited loop");
System.out.println("bottom is " + bottom);
System.out.println("below hitResult is " + hitResult.getBlockPos().below());

if (bottom.equals(hitResult.getBlockPos().below())) {
System.out.println("early return");
return InteractionResult.PASS;
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.parallel=true
version=4.1.1+1.20.2
version=4.1.3+1.20.2
minecraft_version=1.20.2
branch=main
group=io.github.jamalam360
Expand Down

0 comments on commit 96d3a2c

Please sign in to comment.