forked from 2009Scape/Server
Fix edge case save parsing issue for poison
This commit is contained in:
parent
162cfe3d6b
commit
d666317a68
1 changed files with 1 additions and 1 deletions
|
|
@ -35,8 +35,8 @@ class Poison : PersistTimer (30, "poison", flags = arrayOf(TimerFlag.ClearOnDeat
|
|||
|
||||
override fun parse (root: JSONObject, entity: Entity) {
|
||||
val uid = root["source-uid"].toString().toInt()
|
||||
severity = root["severity"].toString().toInt()
|
||||
damageSource = Repository.getPlayerByUid (uid) ?: entity
|
||||
severity = root["severity"].toString().toInt()
|
||||
}
|
||||
|
||||
override fun onRegister (entity: Entity) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue