Trim fat from the build.gradle

This commit is contained in:
ceikry
2021-07-21 11:25:22 -05:00
parent f92f63088a
commit ab9fcd8ea3
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ compileJava {
compileKotlin {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
freeCompilerArgs = ['-Xjsr305=strict', '-XXLanguage:-NewInference','-Xms2560m','-Xmx4096m', '-XX:MaxPermSize=350m','-XX:ReservedCodeCacheSize=225m','-XX:+UseCompressedOops']
freeCompilerArgs += '-XXLanguage:-NewInference'
}
}
@@ -98,10 +98,6 @@ object OfferManager {
val offers = saveFile["offers"] as JSONArray
for (offer in offers) {
val o = offer as JSONObject
// Copy all the bot offers from the file
if (o["playerUID"].toString().toInt() == 0) {
addBotOffer(o["itemId"].toString().toInt(), o["amount"].toString().toInt() - o["completedAmount"].toString().toInt())
}
val no = GrandExchangeOffer()
no.itemID = o["itemId"].toString().toInt()
no.sell = o["sale"] as Boolean
@@ -267,7 +263,7 @@ object OfferManager {
for(entry in OFFER_MAPPING){
val offer = entry.value
if (offer.offerState == OfferState.REMOVED || entry.value.playerUID == PlayerDetails.getDetails("2009scape").uid) {
if (offer.offerState == OfferState.REMOVED) {
continue
}
val o = JSONObject()