@@ -65,16 +65,7 @@
|
||||
public void removeSlotListener(ICrafting 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 @@
|
||||
@@ -379,7 +423,7 @@
|
||||
}
|
||||
} else if (this.quickcraftStatus == 2) {
|
||||
if (!this.quickcraftSlots.isEmpty()) {
|
||||
@@ -83,7 +74,7 @@
|
||||
k = ((Slot) this.quickcraftSlots.iterator().next()).index;
|
||||
this.resetQuickCraft();
|
||||
this.doClick(k, this.quickcraftType, InventoryClickType.PICKUP, entityhuman);
|
||||
@@ -392,6 +436,7 @@
|
||||
@@ -390,6 +434,7 @@
|
||||
l = this.getCarried().getCount();
|
||||
Iterator iterator = this.quickcraftSlots.iterator();
|
||||
|
||||
@@ -91,7 +82,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
Slot slot1 = (Slot) iterator.next();
|
||||
ItemStack itemstack2 = this.getCarried();
|
||||
@@ -408,12 +453,48 @@
|
||||
@@ -406,12 +451,48 @@
|
||||
}
|
||||
|
||||
l -= itemstack3.getCount() - j1;
|
||||
@@ -143,7 +134,7 @@
|
||||
}
|
||||
|
||||
this.resetQuickCraft();
|
||||
@@ -431,8 +512,11 @@
|
||||
@@ -429,8 +510,11 @@
|
||||
if (i == -999) {
|
||||
if (!this.getCarried().isEmpty()) {
|
||||
if (clickaction == ClickAction.PRIMARY) {
|
||||
@@ -156,7 +147,7 @@
|
||||
} else {
|
||||
entityhuman.drop(this.getCarried().split(1), true);
|
||||
}
|
||||
@@ -495,6 +579,15 @@
|
||||
@@ -493,6 +577,15 @@
|
||||
}
|
||||
|
||||
slot.setChanged();
|
||||
@@ -172,7 +163,7 @@
|
||||
}
|
||||
} else {
|
||||
Slot slot2;
|
||||
@@ -602,13 +695,14 @@
|
||||
@@ -600,13 +693,14 @@
|
||||
ItemStack itemstack = this.getCarried();
|
||||
|
||||
if (!itemstack.isEmpty()) {
|
||||
@@ -188,7 +179,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -822,6 +916,11 @@
|
||||
@@ -820,6 +914,11 @@
|
||||
}
|
||||
|
||||
public ItemStack getCarried() {
|
||||
|
||||
Reference in New Issue
Block a user