Remove debug log

This commit is contained in:
ZacSharp 2021-01-18 11:58:42 +01:00
parent fc1a2a6112
commit f6d4a315c7
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
1 changed files with 0 additions and 5 deletions

View File

@ -49,23 +49,18 @@ public class SubstituteSchematic extends AbstractSchematic {
} }
List<Block> substitutes = substitutions.get(desiredBlock); List<Block> substitutes = substitutions.get(desiredBlock);
if (substitutes.contains(current.getBlock()) && !current.getBlock().equals(Blocks.AIR)) {// don't preserve air, it's almost always there and almost never wanted if (substitutes.contains(current.getBlock()) && !current.getBlock().equals(Blocks.AIR)) {// don't preserve air, it's almost always there and almost never wanted
System.out.println(String.format("%s is already placed", current));
return current; return current;
} }
for (Block substitute : substitutes) { for (Block substitute : substitutes) {
if (substitute.equals(Blocks.AIR)) { if (substitute.equals(Blocks.AIR)) {
System.out.println("air, lol");
return Blocks.AIR.getDefaultState(); // can always "place" air return Blocks.AIR.getDefaultState(); // can always "place" air
} }
for (IBlockState placeable : approxPlaceable) { for (IBlockState placeable : approxPlaceable) {
if (substitute.equals(placeable.getBlock())) { if (substitute.equals(placeable.getBlock())) {
System.out.println(String.format("%s can be placed", placeable));
return placeable; return placeable;
} }
} }
System.out.println(String.format("%s is not an option", substitute));
} }
System.out.println(String.format("%s fail", substitutes.get(0).getDefaultState()));
return substitutes.get(0).getDefaultState(); return substitutes.get(0).getDefaultState();
} }
} }