minor cleanup and appending '-devNNN' to version in mcmod.info (for jenkins)

This commit is contained in:
Florian Nücke 2014-02-14 13:25:12 +01:00
parent 00702f2389
commit 40fd6f6332
2 changed files with 5 additions and 2 deletions

View File

@ -22,8 +22,11 @@ version = "2.0.0"
group= "li.cil.oc" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "OpenComputers"
if (System.getenv("BUILD_NUMBER") != null)
version += "-dev${System.getenv("BUILD_NUMBER")}"
minecraft {
version = "1.7.2-10.12.0.1024"
version = "1.7.2-10.12.0.1028"
assetDir = "eclipse/assets"
}
processResources

View File

@ -237,7 +237,7 @@ class FileSystem(val fileSystem: IFileSystem, var label: Label) extends ManagedC
val address = ownerNbt.getString("address")
if (address != "") {
// Was tag list in 1.6, so wee need to check this when upgrading.
if (ownerNbt.getTag("handles").getId == NBT.TAG_INT_ARRAY) {
if (ownerNbt.hasKey("handles", NBT.TAG_INT_ARRAY)) {
owners += address -> ownerNbt.getIntArray("handles").to[mutable.Set]
}
}