Updated kotlin to 1.8.0

Updated kotlin target to java 11
Fixed build errors when targeting 1.8.0
This commit is contained in:
Ceikry
2023-02-18 09:18:24 +00:00
committed by Ryan
parent 86405d89f4
commit 675d576c58
13 changed files with 17 additions and 9 deletions
@@ -23,6 +23,7 @@ class ChickenKiller : Script(){
override fun tick() {
when(state){
State.CONFIG -> {}
State.INIT -> {
overlay = scriptAPI.getOverlay()
overlay!!.init()
@@ -103,8 +104,6 @@ class ChickenKiller : Script(){
IDLE,
INIT,
KILLING,
LOOTING,
RETURN,
CONFIG,
LOOTFEATHER,
LOOTBONES,
@@ -64,7 +64,7 @@ class GenericSlayerBot : Script() {
}
}
}
else -> {}
}
}
@@ -220,7 +220,6 @@ class GenericSlayerBot : Script() {
GETTING_TASK,
GOING_TO_HUB,
KILLING_ENEMY,
LOOTING,
GOING_TO_BANK,
BANKING,
GOING_TO_GE,
@@ -155,6 +155,8 @@ class GnomeBowstring : Script() {
state = State.PICKING
}
}
else -> {}
}
}
override fun newInstance(): Script {
@@ -65,8 +65,8 @@ class SeersFlax : Script(){
State.FIND_BANK -> {
when(bot.location){
Location.create(2711, 3471, 1) -> {
val ladder = scriptAPI.getNearestNode(25939,true)
ladder?.interaction?.handle(bot,ladder?.interaction[0])
val ladder = scriptAPI.getNearestNode(25939,true) ?: return
ladder.interaction?.handle(bot,ladder.interaction[0])
}
Location.create(2714, 3470, 0) -> Pathfinder.find(bot,Location.create(2715, 3472, 0)).walk(bot)
Location.create(2715, 3472, 0) -> {