formatting

This commit is contained in:
Entropy5 2021-12-22 00:20:21 +01:00
parent 26e8f02e85
commit 9d13bcfe11
1 changed files with 6 additions and 4 deletions

View File

@ -843,13 +843,15 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
); );
private boolean sameWithoutOrientation(IBlockState first, IBlockState second) { private boolean sameWithoutOrientation(IBlockState first, IBlockState second) {
if (first.getBlock() != second.getBlock() if (first.getBlock() != second.getBlock()) {
) {return false;} return false;
}
ImmutableMap<IProperty<?>, Comparable<?>> map1 = first.getProperties(); ImmutableMap<IProperty<?>, Comparable<?>> map1 = first.getProperties();
ImmutableMap<IProperty<?>, Comparable<?>> map2 = second.getProperties(); ImmutableMap<IProperty<?>, Comparable<?>> map2 = second.getProperties();
for (IProperty<?> prop : map1.keySet()) { for (IProperty<?> prop : map1.keySet()) {
if (map1.get(prop) != map2.get(prop) && !orientationProps.contains(prop) if (map1.get(prop) != map2.get(prop) && !orientationProps.contains(prop)) {
) {return false;} return false;
}
} }
return true; return true;
} }