diff --git a/core/src/io/anuke/mindustry/maps/Map.java b/core/src/io/anuke/mindustry/maps/Map.java index 378f3c8ff6..8d9f63a04c 100644 --- a/core/src/io/anuke/mindustry/maps/Map.java +++ b/core/src/io/anuke/mindustry/maps/Map.java @@ -181,12 +181,14 @@ public class Map implements Comparable, Publishable{ @Override public FileHandle createSteamFolder(String id){ - return null; + FileHandle mapFile = tmpDirectory.child("map_" + id).child("map.msav"); + file.copyTo(mapFile); + return mapFile.parent(); } @Override public FileHandle createSteamPreview(String id){ - return null; + return previewFile(); } @Override diff --git a/core/src/io/anuke/mindustry/world/blocks/production/Drill.java b/core/src/io/anuke/mindustry/world/blocks/production/Drill.java index a70ef2ba12..5e528a1416 100644 --- a/core/src/io/anuke/mindustry/world/blocks/production/Drill.java +++ b/core/src/io/anuke/mindustry/world/blocks/production/Drill.java @@ -194,7 +194,9 @@ public class Drill extends Block{ }); stats.add(BlockStat.drillSpeed, 60f / drillTime * size * size, StatUnit.itemsSecond); - stats.add(BlockStat.boostEffect, liquidBoostIntensity, StatUnit.timesSpeed); + if(liquidBoostIntensity > 0){ + stats.add(BlockStat.boostEffect, liquidBoostIntensity * liquidBoostIntensity, StatUnit.timesSpeed); + } } void countOre(Tile tile){