Skip to content

Commit

Permalink
Fixes indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarno committed Jun 18, 2017
1 parent 72d4c2c commit 7799000
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/mapcraftercore/mc/chunk.h
Expand Up @@ -101,7 +101,7 @@ class Chunk {
/**
* Returns some additional block data, originally stored somewhere else (e.g. in an NBT tag)
*/
uint16_t getBlockExtraData(const LocalBlockPos& pos, uint16_t id) const;
uint16_t getBlockExtraData(const LocalBlockPos& pos, uint16_t id) const;

/**
* Returns the block light at a specific position (local coordinates).
Expand Down
Expand Up @@ -195,19 +195,17 @@ void IsometricTileRenderer::renderTile(const TilePos& tile_pos, RGBAImage& tile)
mc::LocalBlockPos local(block.current);

// get block id
uint16_t id;
id = current_chunk->getBlockID(local);
uint16_t id = current_chunk->getBlockID(local);

// air is completely transparent so continue
if (id == 0) {
in_water = false;
continue;
}

// get the data and extra data
uint16_t data, extra_data;
data = current_chunk->getBlockData(local);
extra_data = current_chunk->getBlockExtraData(local, id);
// get the data and extra data
uint16_t data = current_chunk->getBlockData(local);
uint16_t extra_data = current_chunk->getBlockExtraData(local, id);

// check if the render mode hides this block
if (render_mode->isHidden(block.current, id, data))
Expand Down

0 comments on commit 7799000

Please sign in to comment.