Fix closeInventory shenanigans (#6292)

This commit is contained in:
Nassim Jahnke 2021-07-30 11:37:11 +02:00
parent bf8f91cf09
commit 722c7ccb57
2 changed files with 2 additions and 4 deletions

View File

@ -78,4 +78,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
@Override @Override
public void closeInventory() { public void closeInventory() {
this.getHandle().closeContainer(org.bukkit.event.inventory.InventoryCloseEvent.Reason.PLUGIN); // Paper start

View File

@ -171,10 +171,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@Override @Override
public void closeInventory() { public void closeInventory() {
- this.getHandle().closeContainer(); - this.getHandle().closeContainer();
+ this.getHandle().closeContainer(org.bukkit.event.inventory.InventoryCloseEvent.Reason.PLUGIN);
+ getHandle().closeContainer();
+ // Paper start + // Paper start
+ getHandle().closeContainer(org.bukkit.event.inventory.InventoryCloseEvent.Reason.PLUGIN); + this.getHandle().closeContainer(org.bukkit.event.inventory.InventoryCloseEvent.Reason.PLUGIN);
} }
+ @Override + @Override
+ public void closeInventory(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) { + public void closeInventory(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) {