Skip to content

Commit

Permalink
Possible fix for #5
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Nov 10, 2016
1 parent 95b67fb commit 8b2e561
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;

import java.util.UUID;

public abstract class TileTransactionMachine extends TileEntity implements Machine, IInventory
public abstract class TileTransactionMachine extends TileEntity implements Machine, ISidedInventory
{
private UUID machineId;
public EntityPlayer opener;
Expand Down Expand Up @@ -102,4 +104,22 @@ public void onContainerClosed(EntityPlayer player)
if(player.isEntityEqual(opener))
opener = null;
}

@Override
public int[] getSlotsForFace(int p_94128_1_)
{
return new int[0];
}

@Override
public boolean canInsertItem(int p_102007_1_, ItemStack p_102007_2_, int p_102007_3_)
{
return false;
}

@Override
public boolean canExtractItem(int p_102008_1_, ItemStack p_102008_2_, int p_102008_3_)
{
return false;
}
}

0 comments on commit 8b2e561

Please sign in to comment.