Bugfix
This commit is contained in:
@ -6,7 +6,7 @@ minecraft_version=1.21.1
|
||||
yarn_mappings=1.21.1+build.3
|
||||
loader_version=0.16.2
|
||||
# Mod Properties
|
||||
mod_version=1.4.3
|
||||
mod_version=1.4.4
|
||||
maven_group=systems.brn
|
||||
archives_base_name=servershop
|
||||
# Dependencies
|
||||
|
@ -75,7 +75,7 @@ public class AuctionStorage {
|
||||
int buyPrice = auction.buyPrice() * itemStack.getCount();
|
||||
long playerBalance = balanceStorage.getBalance(buyer);
|
||||
if (buyPrice > 0 && auctions.contains(auction)) {
|
||||
if (playerBalance >= buyPrice) {
|
||||
if (playerBalance >= buyPrice || buyer.getUuid().equals(auction.sellerUUID())) {
|
||||
if (canInsertItemIntoInventory(playerInventory, itemStack.copy()) >= itemStack.getCount()) {
|
||||
ItemStack remaining = insertStackIntoInventory(playerInventory, itemStack.copy());
|
||||
int toDeduce = buyPrice - (auction.buyPrice() * remaining.getCount());
|
||||
|
Reference in New Issue
Block a user