Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-17 20:10:10 +01:00
SPIGOT-4860: Cancelling InventoryOpenEvent on MerchantInventory prevents re-opening
Dieser Commit ist enthalten in:
Ursprung
09a453aede
Commit
df82e4f08a
@ -14,7 +14,7 @@
|
||||
|
||||
public class InventoryMerchant implements IInventory {
|
||||
|
||||
@@ -12,6 +19,45 @@
|
||||
@@ -12,6 +19,46 @@
|
||||
public int selectedIndex;
|
||||
private int e;
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
+
|
||||
+ public void onClose(CraftHumanEntity who) {
|
||||
+ transaction.remove(who);
|
||||
+ merchant.setTradingPlayer((EntityHuman) null); // SPIGOT-4860
|
||||
+ }
|
||||
+
|
||||
+ public List<HumanEntity> getViewers() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren