Add shift-click support and configurable usage to Digital Miner

This commit is contained in:
Aidan C. Brady 2013-11-23 21:25:37 -06:00
parent dca7663de9
commit 009ee3a885
4 changed files with 16 additions and 1 deletions

View file

@ -180,6 +180,7 @@ public class CommonProxy
Mekanism.metallurgicInfuserUsage = Mekanism.configuration.get("usage", "MetallurgicInfuserUsage", 50).getDouble(50);
Mekanism.purificationChamberUsage = Mekanism.configuration.get("usage", "PurificationChamberUsage", 50).getDouble(50);
Mekanism.energizedSmelterUsage = Mekanism.configuration.get("usage", "EnergizedSmelterUsage", 50).getDouble(50);
Mekanism.digitalMinerUsage = Mekanism.configuration.get("usage", "DigitalMinerUsage", 100).getDouble(100);
Mekanism.configuration.save();
}

View file

@ -248,6 +248,7 @@ public class Mekanism
public static double metallurgicInfuserUsage;
public static double purificationChamberUsage;
public static double energizedSmelterUsage;
public static double digitalMinerUsage;
/**
* Adds all in-game crafting and smelting recipes.

View file

@ -110,6 +110,19 @@ public class ContainerDigitalMiner extends Container
}
}
}
else {
if(slotID < 27)
{
if(!mergeItemStack(slotStack, 29, inventorySlots.size(), true))
{
return null;
}
}
else if(!mergeItemStack(slotStack, 0, 27, false))
{
return null;
}
}
if(slotStack.stackSize == 0)
{

View file

@ -59,7 +59,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
public ThreadMinerSearch searcher = new ThreadMinerSearch(this);
public final double ENERGY_USAGE = 100;
public final double ENERGY_USAGE = Mekanism.digitalMinerUsage;
public int radius;