mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-15 10:17:39 +07:00
Fixed black blocks/units after quit / Fixed intense wave spawn lag
This commit is contained in:
@ -331,7 +331,7 @@ public class ApplicationTests{
|
||||
|
||||
@Test
|
||||
void allBlockTest(){
|
||||
Tile[][] tiles = world.createTiles(256 + 20, 10);
|
||||
Tile[][] tiles = world.createTiles(256*2 + 20, 10);
|
||||
|
||||
world.beginMapLoad();
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
@ -344,6 +344,7 @@ public class ApplicationTests{
|
||||
for(int x = 5; x < tiles.length && i < content.blocks().size; ){
|
||||
Block block = content.block(i++);
|
||||
if(block.buildVisibility.get()){
|
||||
x += block.size;
|
||||
tiles[x][5].setBlock(block);
|
||||
x += block.size;
|
||||
}
|
||||
|
Reference in New Issue
Block a user