MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / updateTopBlockLocation

Method updateTopBlockLocation

Source/World/Chunk/Full_Chunk.cpp:163–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 void Full_Chunk::updateTopBlockLocation(const Block::Position& position)
164 {
165 int val = m_highestBlocks.at(position.x, position.z);
166
167 m_highestBlocks.at(position.x, position.z) = std::max((int)val, position.y);
168 }
169
170
171 //Adds all of the chunks within the viewing frustum into the master renderer

Callers 1

setBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected