13
0
geforkt von Mirrors/Paper

Remove broken quickMoveStack implementation

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2022-04-04 20:17:00 +10:00
Ursprung 8ea55f306a
Commit 6cd6b91c36

Datei anzeigen

@ -65,6 +65,15 @@
public void removeSlotListener(ICrafting icrafting) { public void removeSlotListener(ICrafting icrafting) {
this.containerListeners.remove(icrafting); this.containerListeners.remove(icrafting);
} }
@@ -325,7 +369,7 @@
}
public ItemStack quickMoveStack(EntityHuman entityhuman, int i) {
- return ((Slot) this.slots.get(i)).getItem();
+ return ItemStack.EMPTY; // CraftBukkit - previous implementation was useless and broken
}
public void clicked(int i, int j, InventoryClickType inventoryclicktype, EntityHuman entityhuman) {
@@ -381,7 +425,7 @@ @@ -381,7 +425,7 @@
} }
} else if (this.quickcraftStatus == 2) { } else if (this.quickcraftStatus == 2) {