From a5cec84be161d92a337cd6ad9b897efb044264c6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 27 Oct 2019 22:18:53 -0400 Subject: [PATCH] Fixed #917 --- core/src/io/anuke/mindustry/maps/Map.java | 6 ++++-- .../io/anuke/mindustry/world/blocks/production/Drill.java | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) 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){