Most of the 1.8 Port.

This commit is contained in:
AlgorithmX2
2015-06-15 19:44:59 -05:00
parent 17465e68e8
commit 38afde724b
824 changed files with 12120 additions and 9158 deletions
@@ -20,9 +20,9 @@ package appeng.tile.crafting;
import net.minecraft.item.ItemStack;
import appeng.api.AEApi;
import appeng.api.definitions.IBlocks;
import appeng.block.crafting.BlockCraftingUnit;
public class TileCraftingStorageTile extends TileCraftingTile
@@ -80,16 +80,17 @@ public class TileCraftingStorageTile extends TileCraftingTile
return 0;
}
switch( this.worldObj.getBlockMetadata( this.xCoord, this.yCoord, this.zCoord ) & 3 )
BlockCraftingUnit unit = (BlockCraftingUnit)this.worldObj.getBlockState( pos ).getBlock();
switch( unit.type )
{
default:
case 0:
case STORAGE_1K:
return 1024;
case 1:
case STORAGE_4K:
return 4 * 1024;
case 2:
case STORAGE_16K:
return 16 * 1024;
case 3:
case STORAGE_64K:
return 64 * 1024;
}
}