From 01b7cddaa3cbb4f135a8b505388a1167f0a92c81 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Fri, 15 Oct 2021 15:26:44 +0100 Subject: [PATCH] =?UTF-8?q?Use=20correct=20tax=20amount=20=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/Acrobot/ChestShop/Listeners/Economy/TaxModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/TaxModule.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/TaxModule.java index 8e3f411..226daeb 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/TaxModule.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/TaxModule.java @@ -66,7 +66,7 @@ public class TaxModule implements Listener { ChestShop.getBukkitLogger().info(String.format(TAX_SENT_MESSAGE, taxAmount, taxSent, taxedSentAmount)); BigDecimal taxReceived = getTaxAmount(event.getAmountReceived(), taxAmount); - BigDecimal taxedReceivedAmount = event.getAmountReceived().subtract(taxSent); + BigDecimal taxedReceivedAmount = event.getAmountReceived().subtract(taxReceived); event.setAmountReceived(taxedReceivedAmount); ChestShop.getBukkitLogger().info(String.format(TAX_RECEIVED_MESSAGE, taxAmount, taxReceived, taxedReceivedAmount)); }