mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Polished security desk interface and machine interaction. Need to start integrating now, so far only complete in metallurgic infuser
This commit is contained in:
1 parent
062671cdc4
commit
9c480954e3
16 files changed
+308
-44
No files matched your search
@@ -19,6 +19,7 @@ import mekanism.common.block.BlockMachine.MachineType;
|
||||
import mekanism.common.inventory.InventoryBin;
|
||||
import mekanism.common.recipe.ShapedMekanismRecipe;
|
||||
import mekanism.common.recipe.ShapelessMekanismRecipe;
|
||||
import mekanism.common.security.ISecurityItem;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -150,6 +151,22 @@ public class RecipeUtils
|
||||
}
|
||||
}
|
||||
|
||||
if(toReturn.getItem() instanceof ISecurityItem)
|
||||
{
|
||||
for(int i = 0; i < 9; i++)
|
||||
{
|
||||
ItemStack itemstack = inv.getStackInSlot(i);
|
||||
|
||||
if(itemstack.getItem() instanceof ISecurityItem)
|
||||
{
|
||||
((ISecurityItem)toReturn.getItem()).setOwner(toReturn, ((ISecurityItem)itemstack.getItem()).getOwner(itemstack));
|
||||
((ISecurityItem)toReturn.getItem()).setSecurity(toReturn, ((ISecurityItem)itemstack.getItem()).getSecurity(itemstack));
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(toReturn.getItem() instanceof IFluidContainerItem)
|
||||
{
|
||||
FluidStack fluidFound = null;
|
||||
|
||||
Reference in new issue
Block a user