Merge branch 'master-MC1.7.10' into master-MC1.10

This commit is contained in:
payonel 2020-04-27 00:10:13 -07:00
commit 56eaafabdc
3 changed files with 3 additions and 9 deletions

View File

@ -200,13 +200,6 @@ object SaveHandler {
}
def cleanSaveData(): Unit = {
while (!chunkDirs.isEmpty) {
val chunkPath = chunkDirs.poll()
if (chunkPath.exists && chunkPath.isDirectory && chunkPath.list() != null) {
for (file <- chunkPath.listFiles() if System.currentTimeMillis() - file.lastModified() > TimeToHoldOntoOldSaves) file.delete()
}
}
// Delete empty folders to keep the state folder clean.
val emptyDirs = savePath.listFiles(new FileFilter {
override def accept(file: File) = file.isDirectory &&

View File

@ -389,7 +389,7 @@ object DebugCard {
def setGameType(context: Context, args: Arguments): Array[AnyRef] =
withPlayer(player => {
val gametype = args.checkString(0)
player.setGameType(GameType.values.find(_.name == gametype).getOrElse(GameType.SURVIVAL))
player.setGameType(GameType.values.find(_.getName == gametype).getOrElse(GameType.SURVIVAL))
null
})

View File

@ -83,7 +83,8 @@ class UpgradeNavigation(val host: EnvironmentHost with Rotatable) extends prefab
Map(
"position" -> Array(delta.xCoord, delta.yCoord, delta.zCoord),
"redstone" -> waypoint.maxInput,
"label" -> waypoint.label
"label" -> waypoint.label,
"address" -> waypoint.node.address()
)
}).toArray)
}