From 4fc5e088ad8ff22151ec36a2251044e0c9518bce Mon Sep 17 00:00:00 2001 From: Player Name Date: Fri, 19 Jan 2024 09:50:25 +0000 Subject: [PATCH] Fixed bug that could result in players losing Christmas event rewards if their inventory is full --- .../holiday/christmas/randoms/SantaHolidayRandomDialogue.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/game/worldevents/holiday/christmas/randoms/SantaHolidayRandomDialogue.kt b/Server/src/main/core/game/worldevents/holiday/christmas/randoms/SantaHolidayRandomDialogue.kt index d5f758298..4e09eda6d 100644 --- a/Server/src/main/core/game/worldevents/holiday/christmas/randoms/SantaHolidayRandomDialogue.kt +++ b/Server/src/main/core/game/worldevents/holiday/christmas/randoms/SantaHolidayRandomDialogue.kt @@ -38,7 +38,7 @@ class SantaHolidayRandomDialogue : DialogueFile() { 30 -> npcl(FacialExpression.HAPPY, "Since you have been a good ${if (player!!.isMale) "boy" else "girl"} this year, you get a gift. Merry Christmas, ${player!!.username}!").also { stage = 31 } 31 -> { val loot = Giftmas.MBOX_LOOT.roll().first() - addItem(player!!, loot.id, loot.amount) + addItemOrDrop(player!!, loot.id, loot.amount) HolidayRandoms.terminateEventNpc(player!!) end() }