Skip to content

Commit

Permalink
Fix upgrade tool incorrectly counting required blocks
Browse files Browse the repository at this point in the history
Closes #144
  • Loading branch information
rubensworks committed Jan 6, 2021
1 parent b5a230e commit cba041d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ protected ITextComponent attemptTransform(final World world, BlockPos pos, Playe
if (blockState.getBlock() instanceof ColossalChest) {
requiredCoresCount.set(requiredCoresCount.get() + 1);
} else if (blockState.getBlock() instanceof Interface) {
requiredInterfacesCount.set(requiredCoresCount.get() + 1);
requiredInterfacesCount.set(requiredInterfacesCount.get() + 1);
} else if (blockState.getBlock() instanceof ChestWall) {
requiredWallsCount.set(requiredCoresCount.get() + 1);
requiredWallsCount.set(requiredWallsCount.get() + 1);
}
return null;
}, false);
Expand Down

0 comments on commit cba041d

Please sign in to comment.