Commits
md_5 authored 2542945ef49
58 58 | + this.remoteCarried = this.getCarried().copy(); |
59 59 | + if (this.synchronizer != null) { |
60 60 | + this.synchronizer.sendCarriedChange(this, this.remoteCarried); |
61 61 | + } |
62 62 | + } |
63 63 | + // CraftBukkit end |
64 64 | + |
65 65 | public void removeSlotListener(ICrafting icrafting) { |
66 66 | this.containerListeners.remove(icrafting); |
67 67 | } |
68 + | |
69 + | } |
70 + | |
71 + | public ItemStack quickMoveStack(EntityHuman entityhuman, int i) { |
72 + | - return ((Slot) this.slots.get(i)).getItem(); |
73 + | + return ItemStack.EMPTY; // CraftBukkit - previous implementation was useless and broken |
74 + | } |
75 + | |
76 + | public void clicked(int i, int j, InventoryClickType inventoryclicktype, EntityHuman entityhuman) { |
68 77 | |
69 78 | } |
70 79 | } else if (this.quickcraftStatus == 2) { |
71 80 | if (!this.quickcraftSlots.isEmpty()) { |
72 81 | - if (this.quickcraftSlots.size() == 1) { |
73 82 | + if (false && this.quickcraftSlots.size() == 1) { // CraftBukkit - treat everything as a drag since we are unable to easily call InventoryClickEvent instead |
74 83 | k = ((Slot) this.quickcraftSlots.iterator().next()).index; |
75 84 | this.resetQuickCraft(); |
76 85 | this.doClick(k, this.quickcraftType, InventoryClickType.PICKUP, entityhuman); |
77 86 | |