mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
Bugfixes (again)
This commit is contained in:
parent
55b3e8639f
commit
17b24c3389
Binary file not shown.
@ -28,7 +28,9 @@ import io.anuke.mindustry.input.InputHandler;
|
|||||||
import io.anuke.mindustry.input.MobileInput;
|
import io.anuke.mindustry.input.MobileInput;
|
||||||
import io.anuke.mindustry.maps.Map;
|
import io.anuke.mindustry.maps.Map;
|
||||||
import io.anuke.mindustry.net.Net;
|
import io.anuke.mindustry.net.Net;
|
||||||
|
import io.anuke.mindustry.type.Item;
|
||||||
import io.anuke.mindustry.ui.dialogs.FloatingDialog;
|
import io.anuke.mindustry.ui.dialogs.FloatingDialog;
|
||||||
|
import io.anuke.mindustry.world.Tile;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@ -301,6 +303,16 @@ public class Control implements ApplicationListener{
|
|||||||
input.update();
|
input.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(world.isZone()){
|
||||||
|
for(Tile tile : state.teams.get(players[0].getTeam()).cores){
|
||||||
|
for(Item item : content.items()){
|
||||||
|
if(tile.entity.items.has(item)){
|
||||||
|
data.unlockContent(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//autosave global data every second if it's modified
|
//autosave global data every second if it's modified
|
||||||
if(timer.get(1, 60)){
|
if(timer.get(1, 60)){
|
||||||
data.checkSave();
|
data.checkSave();
|
||||||
|
@ -185,7 +185,7 @@ public class World implements ApplicationListener{
|
|||||||
|
|
||||||
addDarkness(tiles);
|
addDarkness(tiles);
|
||||||
|
|
||||||
EntityQuery.resizeTree(-finalWorldBounds, -finalWorldBounds, tiles.length * tilesize + finalWorldBounds, tiles[0].length + finalWorldBounds);
|
EntityQuery.resizeTree(-finalWorldBounds, -finalWorldBounds, tiles.length * tilesize + finalWorldBounds, tiles[0].length * tilesize + finalWorldBounds);
|
||||||
|
|
||||||
generating = false;
|
generating = false;
|
||||||
Events.fire(new WorldLoadEvent());
|
Events.fire(new WorldLoadEvent());
|
||||||
|
@ -94,7 +94,6 @@ public class GlobalData{
|
|||||||
modified = true;
|
modified = true;
|
||||||
content.onUnlock();
|
content.onUnlock();
|
||||||
Events.fire(new UnlockEvent(content));
|
Events.fire(new UnlockEvent(content));
|
||||||
save();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,6 @@ public class Generators {
|
|||||||
out.draw(x, y, outlineColor);
|
out.draw(x, y, outlineColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user