mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix MerchantOffer BuyB Only AssertionError (#6206)
This commit is contained in:
parent
3626a2c62b
commit
48f55186f1
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: thamid-gamer <60953955+thamid-gamer@users.noreply.github.com>
|
||||
Date: Fri, 16 Jul 2021 16:00:17 -0400
|
||||
Subject: [PATCH] Fix MerchantOffer BuyB-Only AssertionError
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/item/trading/MerchantOffer.java b/src/main/java/net/minecraft/world/item/trading/MerchantOffer.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/world/item/trading/MerchantOffer.java
|
||||
+++ b/src/main/java/net/minecraft/world/item/trading/MerchantOffer.java
|
||||
@@ -0,0 +0,0 @@ public class MerchantOffer {
|
||||
if (!this.satisfiedBy(firstBuyStack, secondBuyStack)) {
|
||||
return false;
|
||||
} else {
|
||||
+ if (!this.getCostA().isEmpty()) // Paper
|
||||
firstBuyStack.shrink(this.getCostA().getCount());
|
||||
if (!this.getCostB().isEmpty()) {
|
||||
secondBuyStack.shrink(this.getCostB().getCount());
|
Loading…
Reference in a new issue