Improved compression handler, updated buildings.zip, added temporary portal configs

This commit is contained in:
WayofTime 2014-11-29 10:41:01 -05:00
parent 5ba77eaedf
commit 1115eaf9a7
8 changed files with 56 additions and 17 deletions

View file

@ -26,14 +26,14 @@ public class AdvancedCompressionHandler extends CompressionHandler
{
continue;
}
int threshold = CompressionRegistry.getItemThreshold(invStack);
for(int i=2; i<=3; i++)
{
ItemStack stacky = getRecipe(invStack, world, i);
if(isResultStackReversible(stacky, i, world))
{
int threshold = CompressionRegistry.getItemThreshold(invStack);
int needed = i*i;
int neededLeft = iterateThroughInventory(invStack, threshold, inv, needed, false);
if(neededLeft <= 0)