Fixed performance of the compression handler, and made the ritual checking a lot more streamlined. Allowed hoppers, etc, to interact with the chemistry set.

This commit is contained in:
WayofTime 2014-11-22 10:15:29 -05:00
parent ce08afaf9f
commit 4db4b458da
6 changed files with 26 additions and 80 deletions

View file

@ -100,6 +100,10 @@ public class AdvancedCompressionHandler extends CompressionHandler
public boolean isResultStackReversible(ItemStack stack, int gridSize, World world)
{
if(stack == null)
{
return false;
}
InventoryCrafting inventory = new InventoryCrafting(new Container()
{
public boolean canInteractWith(EntityPlayer player)

View file

@ -1,17 +0,0 @@
package WayofTime.alchemicalWizardry.common.compress;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
public class DumbyInventoryCrafting extends InventoryCrafting
{
public DumbyInventoryCrafting(int x, int y)
{
super(null, x, y);
}
@Override
public void setInventorySlotContents(int slot, ItemStack stack)
{
}
}