Fix not using the selected Cash shop surprise
If you have multiple, it would always use the first one. Now it uses whichever you select (as expected).
This commit is contained in:
@@ -42,7 +42,8 @@ public class CashShopSurpriseHandler extends AbstractPacketHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
Optional<CashShopSurpriseResult> result = cs.openCashShopSurprise();
|
||||
long cashId = p.readLong();
|
||||
Optional<CashShopSurpriseResult> result = cs.openCashShopSurprise(cashId);
|
||||
if (result.isEmpty()) {
|
||||
c.sendPacket(PacketCreator.onCashItemGachaponOpenFailed());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user