Fix property not being found on grid type
This commit is contained in:
@@ -10,6 +10,7 @@ import net.minecraft.item.crafting.CraftingManager;
|
|||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraftforge.fml.common.network.NetworkRegistry.TargetPoint;
|
import net.minecraftforge.fml.common.network.NetworkRegistry.TargetPoint;
|
||||||
import refinedstorage.RefinedStorage;
|
import refinedstorage.RefinedStorage;
|
||||||
|
import refinedstorage.RefinedStorageBlocks;
|
||||||
import refinedstorage.block.BlockGrid;
|
import refinedstorage.block.BlockGrid;
|
||||||
import refinedstorage.block.EnumGridType;
|
import refinedstorage.block.EnumGridType;
|
||||||
import refinedstorage.inventory.InventorySimple;
|
import refinedstorage.inventory.InventorySimple;
|
||||||
@@ -60,10 +61,15 @@ public class TileGrid extends TileMachine
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumGridType getType()
|
public EnumGridType getType()
|
||||||
|
{
|
||||||
|
if (worldObj.getBlockState(pos).getBlock() == RefinedStorageBlocks.GRID)
|
||||||
{
|
{
|
||||||
return (EnumGridType) worldObj.getBlockState(pos).getValue(BlockGrid.TYPE);
|
return (EnumGridType) worldObj.getBlockState(pos).getValue(BlockGrid.TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return EnumGridType.NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
public InventoryCrafting getCraftingInventory()
|
public InventoryCrafting getCraftingInventory()
|
||||||
{
|
{
|
||||||
return craftingInventory;
|
return craftingInventory;
|
||||||
|
Reference in New Issue
Block a user