Fix NPE in Gambleshops and add missing messages for gamble shops.

This commit is contained in:
Len authored and destro174 committed 2024-08-04 11:45:07 +02:00
1 parent 7cfd147f1e
commit 7f3f01eda3
3 files changed
+7 -7

No files matched your search

@@ -308,7 +308,7 @@ public class PlayerShop {
private TransactionError executeGambleTransaction(Player player) {
ItemStack itemStack = getRandomItem();
if (itemStack == null)
return null;
return TransactionError.INSUFFICIENT_FUNDS_SHOP;
itemStack = itemStack.clone();
double price = getPrice();