public void compress(TweakProvider<Container> provider, EntityPlayer entityPlayer, Container container, Slot mouseSlot, boolean compressAll) {

if (!mouseSlot.getHasStack() || !canClear(provider, entityPlayer, container, 0)) {</BUG>
return;
<BUG>}
clearGrid(provider, entityPlayer, container, 0, false);</BUG>
int start = provider.getCraftingGridStart(entityPlayer, container, 0);
int size = provider.getCraftingGridSize(entityPlayer, container, 0);
for (int i = start; i < start + size; i++) {
if (container.inventorySlots.get(i).getHasStack()) {

}
private void decompress(TweakProvider<Container> provider, EntityPlayer entityPlayer, Container container, Slot mouseSlot, CompressType compressType) {
if (!mouseSlot.getHasStack() || !canClear(provider, entityPlayer, container, 0)) {
return;
}
boolean decompressAll = compressType != CompressType.DECOMPRESS_ONE;
clearGrid(provider, entityPlayer, container, 0, false);
int start = provider.getCraftingGridStart(entityPlayer, container, 0);
int size = provider.getCraftingGridSize(entityPlayer, container, 0);
for (int i = start; i < start + size; i++) {
if (container.inventorySlots.get(i).getHasStack()) {
