Trim fat from the build.gradle
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ compileJava {
|
|||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_1_8
|
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
|
val offers = saveFile["offers"] as JSONArray
|
||||||
for (offer in offers) {
|
for (offer in offers) {
|
||||||
val o = offer as JSONObject
|
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()
|
val no = GrandExchangeOffer()
|
||||||
no.itemID = o["itemId"].toString().toInt()
|
no.itemID = o["itemId"].toString().toInt()
|
||||||
no.sell = o["sale"] as Boolean
|
no.sell = o["sale"] as Boolean
|
||||||
@@ -267,7 +263,7 @@ object OfferManager {
|
|||||||
|
|
||||||
for(entry in OFFER_MAPPING){
|
for(entry in OFFER_MAPPING){
|
||||||
val offer = entry.value
|
val offer = entry.value
|
||||||
if (offer.offerState == OfferState.REMOVED || entry.value.playerUID == PlayerDetails.getDetails("2009scape").uid) {
|
if (offer.offerState == OfferState.REMOVED) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
val o = JSONObject()
|
val o = JSONObject()
|
||||||
|
|||||||
Reference in New Issue
Block a user