mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 05:20:22 -07:00
Fixed a bug with random events where untradeables in inventory would be deleted
This commit is contained in:
parent
4a022d1d78
commit
fec2fe5a28
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ abstract class RandomEventNPC(id: Int) : NPC(id) {
|
|||
fun noteAndTeleport() {
|
||||
for (item in player.inventory.toArray()) {
|
||||
if (item == null) continue
|
||||
if (item.noteChange != item.id) {
|
||||
if (item.noteChange != item.id && item.noteChange != -1) {
|
||||
player.inventory.remove(item)
|
||||
player.inventory.add(Item(item.noteChange, item.amount))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue