Skip to content

Commit

Permalink
turn off debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Corosauce committed Jun 12, 2024
1 parent 2b2edd2 commit c023f46
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/weather2/block/DeflectorBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_153212_, B

@Override
public void onRemove(BlockState p_60515_, Level level, BlockPos pos, BlockState p_60518_, boolean p_60519_) {
System.out.println("removed deflector block");
//System.out.println("removed deflector block");
if (level.getBlockEntity(pos) instanceof DeflectorBlockEntity deflectorBlockEntity) {
deflectorBlockEntity.blockBroken();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/weather2/block/ForecastBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public InteractionResult use(BlockState p_60503_, Level p_60504_, BlockPos p_605
count++;
}
}
System.out.println(count);
//System.out.println(count);
}

return InteractionResult.CONSUME;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/weather2/util/WeatherUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public static void testAllBlocks() {
}
});

boolean wat = canGrabViaLists(Blocks.TORCH.defaultBlockState());
System.out.println("wat: " + wat);
//boolean wat = canGrabViaLists(Blocks.TORCH.defaultBlockState());
//System.out.println("wat: " + wat);
//}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/weather2/util/WeatherUtilBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,12 @@ public static int trySpreadOnPos2(Level world, BlockPos posSpreadTo, int amount,
statePlaceLayerable = world.getBlockState(posPlaceLayerable);
}
} else {
System.out.println("wat! - " + statePlaceLayerable);
//System.out.println("wat! - " + statePlaceLayerable);
}
}

if (amountAllowedToAdd < 0) {
System.out.println("wat");
//System.out.println("wat");
}
int amountAdded = amountToAdd - amountAllowedToAdd;
amount -= amountAdded;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/weather2/util/WeatherUtilEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public static boolean checkVecOutside(Level parWorld, Vec3 parPos, Vec3 parCheck
BlockHitResult blockhitresult = parWorld.clip(new ClipContext(parPos, parCheckPos, ClipContext.Block.VISUAL, ClipContext.Fluid.NONE, null));
if (blockhitresult.getType() == HitResult.Type.MISS) {
int height = WeatherUtilBlock.getPrecipitationHeightSafe(parWorld, new BlockPos(Mth.floor(parCheckPos.x), 0, Mth.floor(parCheckPos.z))).getY();
System.out.println("height: " + height + " vs " + parCheckPos.y);
//System.out.println("height: " + height + " vs " + parCheckPos.y);
if (height < parCheckPos.y) {
return true;
}
Expand Down

0 comments on commit c023f46

Please sign in to comment.