mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
woops teehee
This commit is contained in:
parent
eab637db3d
commit
d71cc7c8e2
2 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ object SlayerTracker {
|
|||
fun draw(){
|
||||
val timeSinceUpdate = System.currentTimeMillis() - lastUpdate
|
||||
if(!GameConfig.slayerCountEnabled) return
|
||||
if(GameConfig.slayerTaskAmount == 0) return
|
||||
if(GameConfig.slayerTaskAmount <= 0) return
|
||||
if(timeSinceUpdate >= TimeUnit.MINUTES.toMillis(5L)) return
|
||||
val tk = Toolkit.getActiveToolkit()
|
||||
var rectWidth = 60
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ class GameConfig {
|
|||
@JvmStatic
|
||||
fun setSlayerAmount(amount : Int){
|
||||
slayerTaskAmount = amount
|
||||
if(slayerTaskAmount < 0) slayerTaskAmount = 0
|
||||
SlayerTracker.lastUpdate = System.currentTimeMillis()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue