mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 22:12:16 -08:00
Fixed black blocks/units after quit / Fixed intense wave spawn lag
This commit is contained in:
parent
73c48afc99
commit
18328320c1
14 changed files with 36 additions and 96 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue