Skip to content

Commit

Permalink
fixed: Money not being handed out to sellers
Browse files Browse the repository at this point in the history
  • Loading branch information
Adainish committed Sep 3, 2023
1 parent 2664ed5 commit 6f4a48c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/github/adainish/returngts/obj/GTS.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public boolean buyItem(GTSPlayer gtsPlayer, GTSItem gtsItem)
if (gtsItem.hasSold())
return false;

EconomyUtil.giveBalance(gtsItem.seller, gtsItem.askingPrice);
this.gtsItems.remove(gtsItem);
gtsItem.buyer = gtsPlayer.uuid;

Expand Down

0 comments on commit 6f4a48c

Please sign in to comment.