*/
public void updateChunk(){
for(int cx=0;cx<world.getChunkWidth();cx++){
for(int cy=0;cy<world.getChunkHeight();cy++){
for(int cz=0;cz<world.getChunkDepth();cz++){
Block block = blocks[cx][cy][cz];
if(block == null)continue;
if(block.getId() == 0)continue;
this.renderer.addVertices(block.getVertices());
}
}
}
this.renderer.fill();
this.setChanged(false);