Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
require buyer==seller==drawee to bypass tax
Browse files Browse the repository at this point in the history
  • Loading branch information
Librazy committed Dec 24, 2018
1 parent ce20798 commit 12af681
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public synchronized Optional<MiscUtils.GiveStat> transaction(OfflinePlayer buyer
public synchronized Optional<MiscUtils.GiveStat> transaction(OfflinePlayer buyer, OfflinePlayer seller, OfflinePlayer drawee, ItemStack item, double price, double tax) {
int step = 0;
try {
if (drawee.equals(seller)) {
if (buyer.equals(seller) && drawee.equals(seller)) {
MiscUtils.GiveStat stat = MiscUtils.giveItem(buyer, item);
return Optional.of(stat);
}
Expand Down

0 comments on commit 12af681

Please sign in to comment.