diff --git a/build.gradle b/build.gradle index 79290c6ac8..b1d651e313 100644 --- a/build.gradle +++ b/build.gradle @@ -297,9 +297,10 @@ project(":core"){ def props = loadVersionProps() def androidVersion = props['androidBuildCode'].toInteger() - 2 def loglines = file("../changelog").text.split("\n") + def notice = "[This is a truncated changelog, see Github for full notes]" def maxLength = 460 - def androidLogList = loglines.findAll{ line -> !line.endsWith("]") || line.endsWith("[Mobile]") || line.endsWith("[Android]")} + def androidLogList = [notice] + loglines.findAll{ line -> !line.endsWith("]") || line.endsWith("[Mobile]") || line.endsWith("[Android]")} def result = "" androidLogList.forEach{line -> if(result.length() + line.length() + 1 < maxLength){ diff --git a/desktop/src/mindustry/desktop/steam/SStats.java b/desktop/src/mindustry/desktop/steam/SStats.java index 49bed6a511..a8639a272c 100644 --- a/desktop/src/mindustry/desktop/steam/SStats.java +++ b/desktop/src/mindustry/desktop/steam/SStats.java @@ -316,11 +316,11 @@ public class SStats implements SteamUserStatsCallback{ captureBackground.complete(); } - if(!e.sector.planet.sectors.contains(s -> s.hasBase())){ + if(!e.sector.planet.sectors.contains(s -> !s.hasBase())){ captureAllSectors.complete(); } - SStat.sectorsControlled.set(e.sector.planet.sectors.count(s -> s.hasBase())); + SStat.sectorsControlled.set(e.sector.planet.sectors.count(Sector::hasBase)); }); //TODO dead achievement