Add shift-click support and configurable usage to Digital Miner
This commit is contained in:
parent
dca7663de9
commit
009ee3a885
4 changed files with 16 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue