Add some changes

This commit is contained in:
Alexander committed 2014-04-18 00:49:00 -04:00
1 parent da42896f1d
commit 89ee0077be
13 files changed
+131 -19

No files matched your search

@@ -1,10 +1,12 @@
package tconstruct.inventory;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import tconstruct.blocks.logic.PartBuilderLogic;
import tconstruct.common.TRepo;
import tconstruct.library.util.IPattern;
public class PartCrafterContainer extends ActiveContainer
@@ -43,9 +45,12 @@ public class PartCrafterContainer extends ActiveContainer
}
@Override
public boolean canInteractWith (EntityPlayer var1)
public boolean canInteractWith (EntityPlayer entityplayer)
{
return true;
Block block = logic.getWorldObj().getBlock(logic.xCoord, logic.yCoord, logic.zCoord);
if (block != TRepo.toolStationWood && block != TRepo.craftingSlabWood)
return false;
return logic.isUseableByPlayer(entityplayer);
}
@Override