Skip to content

Commit

Permalink
suppress logging unless debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Glease committed Aug 11, 2022
1 parent 4a8c154 commit 728f251
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2209,14 +2209,15 @@ static <T> boolean iterateV2(
xyz[1] += basePositionY;
xyz[2] += basePositionZ;

StructureLib.LOGGER.info(
"Multi [{}, {}, {}] {} step @ {} {}",
basePositionX,
basePositionY,
basePositionZ,
iterateType,
Arrays.toString(xyz),
Arrays.toString(abc));
if (DEBUG_MODE)
StructureLib.LOGGER.info(
"Multi [{}, {}, {}] {} step @ {} {}",
basePositionX,
basePositionY,
basePositionZ,
iterateType,
Arrays.toString(xyz),
Arrays.toString(abc));

if (world.blockExists(xyz[0], xyz[1], xyz[2])) {
if (!predicate.visit(element, world, xyz[0], xyz[1], xyz[2])) {
Expand Down

0 comments on commit 728f251

Please sign in to comment.