Joshua F
05/06/2018, 8:44 AM==
on the same type in equals
? This results in an inf loop and took me a little to track down.
override fun equals(other: Any?): Boolean {
if (other == this) {
return true
}
if (other !is Player) {
return false
}
return other.login == login
}