Skip to content

Commit 225cc34

Browse files
committed
fix: fix crash when disable fast trading
1 parent c865fc3 commit 225cc34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/com/euphony/better_client/mixin/MerchantScreenMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public void addSpeedTradeButton(CallbackInfo ci) {
6767
protected void containerTick() {
6868
super.containerTick();
6969

70-
this.better_client$fastTradingButton.active = false;
71-
7270
if(!config.enableFastTrading) return;
7371

72+
this.better_client$fastTradingButton.active = false;
73+
7474
Inventory inventory;
7575
if (this.minecraft != null) {
7676
if (this.minecraft.player != null) {

0 commit comments

Comments
 (0)