1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-23 06:18:00 +03:00
This commit is contained in:
Anuken 2019-09-08 23:33:21 -04:00
commit b867cdb8b9
3 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,6 @@ public class AndroidLauncher extends AndroidApplication{
@Override
public void showFileChooser(boolean open, String extension, Consumer<FileHandle> cons){
if(VERSION.SDK_INT >= 19){
Intent intent = new Intent(open ? Intent.ACTION_OPEN_DOCUMENT : Intent.ACTION_CREATE_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");

View File

@ -189,6 +189,11 @@ public class Maps{
createNewPreview(map, e -> {
maps.remove(map);
try{
map.file.delete();
}catch(Throwable ignored){
}
error[0] = e;
});

View File

@ -61,7 +61,7 @@ public class Router extends Block{
int counter = tile.rotation();
for(int i = 0; i < proximity.size; i++){
Tile other = proximity.get((i + counter) % proximity.size);
if(tile == from) continue;
if(other == from) continue;
if(set) tile.rotation((byte)((tile.rotation() + 1) % proximity.size));
if(other.block().acceptItem(item, other, Edges.getFacingEdge(tile, other))){
return other;