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

This commit is contained in:
Len
2024-08-04 11:45:07 +02:00
committed by destro174
parent 7cfd147f1e
commit 7f3f01eda3
3 changed files with 7 additions and 7 deletions
@@ -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();