Fixed crash when placing matter fab
This commit is contained in:
parent
51071be80c
commit
6648868944
1 changed files with 9 additions and 1 deletions
|
@ -4,6 +4,7 @@ import ic2.api.energy.tile.IEnergyTile;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import techreborn.config.ConfigTechReborn;
|
||||||
import techreborn.init.ModBlocks;
|
import techreborn.init.ModBlocks;
|
||||||
import techreborn.util.Inventory;
|
import techreborn.util.Inventory;
|
||||||
import ic2.api.energy.prefab.BasicSink;
|
import ic2.api.energy.prefab.BasicSink;
|
||||||
|
@ -15,6 +16,13 @@ public class TileMatterFabricator extends TileMachineBase implements IWrenchable
|
||||||
public BasicSink energy;
|
public BasicSink energy;
|
||||||
public Inventory inventory = new Inventory(7, "TileMatterFabricator", 64);
|
public Inventory inventory = new Inventory(7, "TileMatterFabricator", 64);
|
||||||
|
|
||||||
|
public TileMatterFabricator() {
|
||||||
|
//TODO configs
|
||||||
|
energy = new BasicSink(this, 1000,
|
||||||
|
ConfigTechReborn.CentrifugeTier);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side)
|
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side)
|
||||||
|
|
Loading…
Add table
Reference in a new issue