@@ -108,8 +108,7 @@ public void GeneratePOIBlocks()
108108 if ( BlockOwnerChunk ( new Vector3 ( x , ly , z ) , currentChunk , out newChunk ) )
109109 {
110110 currentChunk = newChunk ;
111- allAlteredChunks . Add ( newChunk ) ;
112- if ( currentChunk . composition != Chunk . Composition . MIX ) currentChunk . composition = Chunk . Composition . MIX ;
111+ allAlteredChunks . Add ( currentChunk ) ;
113112 }
114113
115114 int iterationReset = 0 ;
@@ -122,7 +121,7 @@ public void GeneratePOIBlocks()
122121 if ( y > 15 )
123122 {
124123 bool gotChunk = BlockOwnerChunk ( new Vector3 ( x , y , z ) , currentChunk , out currentChunk ) ;
125- if ( currentChunk . composition != Chunk . Composition . MIX ) currentChunk . composition = Chunk . Composition . MIX ;
124+ allAlteredChunks . Add ( currentChunk ) ;
126125
127126 // Offset i to zero for new chunk
128127 iterationReset = i ;
@@ -172,30 +171,6 @@ public int LocalY(int globalY)
172171 return localY ;
173172 }
174173
175-
176- /*if(column.IsPOI)
177- {
178- bool walls = column.POIWalls != null;
179-
180- for(int x = 0; x < World.chunkSize; x++)
181- for(int z = 0; z < World.chunkSize; z++)
182- {
183- if(walls)
184- {
185- if(column.POIWalls[x,z] == 1)
186- {
187- int groundHeight = column.heightMap[x,z];
188- for(int i = 0; i < column.POIType.wallHeight; i++)
189- {
190- int y = groundHeight + i;
191- blockTypes[x,y,z] = Blocks.Types.STONE;
192- if(!hasBlocks) hasBlocks = true;
193- }
194- }
195- }
196- }
197- }*/
198-
199174 /*public byte GetBitMask(Vector3 voxel, POILibrary.Tiles tile)
200175 {
201176 Vector3[] neighbours = Util.HorizontalBlockNeighbours(voxel);
0 commit comments