Merge pull request #1526 from cvuorinen/1460-phantom-pet-eggs

1460 phantom pet eggs
This commit is contained in:
Phillip Thelen 2021-04-07 16:20:38 +02:00 committed by GitHub
commit 295a8872cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -229,6 +229,7 @@ class RealmInventoryLocalRepository(realm: Realm) : RealmContentLocalRepository(
"hatchingPotions" -> HatchingPotion::class.java
"food" -> Food::class.java
"quests" -> QuestContent::class.java
"special" -> SpecialItem::class.java
else -> Egg::class.java
}
return RxJavaBridge.toV3Flowable(realm.where(itemClass).equalTo("key", key).findFirstAsync().asFlowable<RealmObject>()

View file

@ -14,7 +14,7 @@ open class SpecialItems : RealmObject() {
ownedItems?.forEach {
if (!it.isManaged) {
it.userID = userId
it.itemType = "eggs"
it.itemType = "special"
}
}
}