mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Merge branch '1.7.10' into ic2-compat-config
This commit is contained in:
12 files changed
+25
-20
No files matched your search
@@ -74,8 +74,9 @@ public class MekanismConfig
|
||||
public static boolean OreDictOsmium;
|
||||
public static boolean OreDictPlatinum;
|
||||
public static boolean enableSiliconCompat;
|
||||
public static int IC2SinkTier;
|
||||
public static int IC2SinkTier;
|
||||
public static int IC2SourceTier;
|
||||
public static int digitalMinerMaxRadius;
|
||||
}
|
||||
|
||||
public static class client
|
||||
@@ -169,7 +170,6 @@ public class MekanismConfig
|
||||
public static class tools
|
||||
{
|
||||
public static double armorSpawnRate;
|
||||
public static boolean enableTools = true;
|
||||
}
|
||||
|
||||
public static class recipes
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.Set;
|
||||
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.api.MekanismConfig;
|
||||
import mekanism.client.render.MekanismRenderer;
|
||||
import mekanism.client.sound.SoundHandler;
|
||||
import mekanism.common.Mekanism;
|
||||
@@ -683,7 +684,7 @@ public class GuiDigitalMinerConfig extends GuiMekanism
|
||||
{
|
||||
if(!radiusField.getText().isEmpty())
|
||||
{
|
||||
int toUse = Math.max(0, Math.min(Integer.parseInt(radiusField.getText()), 32));
|
||||
int toUse = Math.max(0, Math.min(Integer.parseInt(radiusField.getText()), MekanismConfig.general.digitalMinerMaxRadius));
|
||||
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(6);
|
||||
|
||||
@@ -165,18 +165,13 @@ public class GuiFactory extends GuiMekanism
|
||||
int xAxis = (x - (width - xSize) / 2);
|
||||
int yAxis = (y - (height - ySize) / 2);
|
||||
|
||||
if(xAxis > 8 && xAxis < 168 && yAxis > 78 && yAxis < 83)
|
||||
if(xAxis > 144 && xAxis < 168 && yAxis > 83 && yAxis < 93)
|
||||
{
|
||||
ItemStack stack = mc.thePlayer.inventory.getItemStack();
|
||||
|
||||
if(stack != null && stack.getItem() instanceof ItemGaugeDropper)
|
||||
{
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(1);
|
||||
|
||||
Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
|
||||
SoundHandler.playSound("gui.button.press");
|
||||
}
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(1);
|
||||
|
||||
Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
|
||||
SoundHandler.playSound("gui.button.press");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ public class GuiMetallurgicInfuser extends GuiMekanism
|
||||
int xAxis = (x - (width - xSize) / 2);
|
||||
int yAxis = (y - (height - ySize) / 2);
|
||||
|
||||
if(xAxis > 148 && xAxis < 168 && yAxis > 73 && yAxis < 82)
|
||||
if(xAxis > 144 && xAxis < 168 && yAxis > 72 && yAxis < 83)
|
||||
{
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(0);
|
||||
|
||||
@@ -101,6 +101,8 @@ public class GuiQuantumEntangloporter extends GuiMekanism
|
||||
buttonList.add(protectedButton);
|
||||
buttonList.add(setButton);
|
||||
buttonList.add(deleteButton);
|
||||
|
||||
access = ISecurityTile.SecurityMode.TRUSTED;
|
||||
}
|
||||
|
||||
public void setFrequency(String freq)
|
||||
@@ -113,6 +115,9 @@ public class GuiQuantumEntangloporter extends GuiMekanism
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(0);
|
||||
data.add(freq);
|
||||
if (access == null) {
|
||||
return;
|
||||
}
|
||||
data.add(access.ordinal());
|
||||
|
||||
Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
|
||||
|
||||
@@ -310,6 +310,7 @@ public class CommonProxy implements IGuiProvider
|
||||
general.OreDictOsmium = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "OreDictOsmium", true).getBoolean();
|
||||
general.OreDictPlatinum = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "OreDictPlatinum", false).getBoolean();
|
||||
general.enableSiliconCompat = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EnableSiliconCompat", true).getBoolean();
|
||||
general.digitalMinerMaxRadius = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DigitalMinerMaxRadius", 32, "Select range from 1 to 64, we do not recommend going over 32", 1, 64).getInt();
|
||||
|
||||
general.IC2SinkTier = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "IC2SinkTier", 4, "Tier level for machines, we recommend setting it to tier 2 for ic2 classic", 1, 4).getInt();
|
||||
general.IC2SourceTier = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "IC2SourceTier", 4, "Tier level for generators, we recommend setting it to tier 2 for ic2 classic", 1, 4).getInt();
|
||||
|
||||
@@ -80,6 +80,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeBoolean(general.OreDictOsmium);
|
||||
dataStream.writeBoolean(general.OreDictPlatinum);
|
||||
dataStream.writeBoolean(general.enableSiliconCompat);
|
||||
dataStream.writeInt(general.digitalMinerMaxRadius);
|
||||
|
||||
for(MachineType type : MachineType.getValidMachines())
|
||||
{
|
||||
@@ -273,9 +274,10 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
general.OreDictOsmium = dataStream.readBoolean();
|
||||
general.OreDictPlatinum = dataStream.readBoolean();
|
||||
general.enableSiliconCompat = dataStream.readBoolean();
|
||||
general.IC2SinkTier = dataStream.readInt();
|
||||
general.IC2SinkTier = dataStream.readInt();
|
||||
general.IC2SourceTier = dataStream.readInt();
|
||||
|
||||
general.digitalMinerMaxRadius = dataStream.readInt();
|
||||
|
||||
for(MachineType type : MachineType.getValidMachines())
|
||||
{
|
||||
machines.setEntry(type.name, dataStream.readBoolean());
|
||||
|
||||
@@ -14,6 +14,7 @@ import java.util.Set;
|
||||
|
||||
import mekanism.api.Chunk3D;
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.api.MekanismConfig;
|
||||
import mekanism.api.MekanismConfig.usage;
|
||||
import mekanism.api.Range4D;
|
||||
import mekanism.common.HashList;
|
||||
@@ -647,7 +648,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
{
|
||||
super.readFromNBT(nbtTags);
|
||||
|
||||
radius = nbtTags.getInteger("radius");
|
||||
radius = Math.min(nbtTags.getInteger("radius"), MekanismConfig.general.digitalMinerMaxRadius);
|
||||
minY = nbtTags.getInteger("minY");
|
||||
maxY = nbtTags.getInteger("maxY");
|
||||
doEject = nbtTags.getBoolean("doEject");
|
||||
@@ -742,7 +743,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
}
|
||||
else if(type == 6)
|
||||
{
|
||||
radius = dataStream.readInt();
|
||||
radius = Math.min(dataStream.readInt(), MekanismConfig.general.digitalMinerMaxRadius);
|
||||
}
|
||||
else if(type == 7)
|
||||
{
|
||||
@@ -1409,7 +1410,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
@Override
|
||||
public void setConfigurationData(NBTTagCompound nbtTags)
|
||||
{
|
||||
radius = nbtTags.getInteger("radius");
|
||||
radius = Math.min(nbtTags.getInteger("radius"), MekanismConfig.general.digitalMinerMaxRadius);
|
||||
minY = nbtTags.getInteger("minY");
|
||||
maxY = nbtTags.getInteger("maxY");
|
||||
doEject = nbtTags.getBoolean("doEject");
|
||||
|
||||
Reference in new issue
Block a user