mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fix a few crashes
This commit is contained in:
1 parent
8f24e5c18f
commit
4cd1c8f4f7
8 files changed
+14
-12
No files matched your search
@@ -34,7 +34,7 @@ public class GasStack
|
||||
return nbtTags;
|
||||
}
|
||||
|
||||
private void read(NBTTagCompound nbtTags)
|
||||
public void read(NBTTagCompound nbtTags)
|
||||
{
|
||||
type = Gas.readFromNBT(nbtTags);
|
||||
amount = nbtTags.getInteger("amount");
|
||||
|
||||
@@ -122,7 +122,7 @@ public class GasTank
|
||||
return nbtTags;
|
||||
}
|
||||
|
||||
private void read(NBTTagCompound nbtTags)
|
||||
public void read(NBTTagCompound nbtTags)
|
||||
{
|
||||
if(nbtTags.hasKey("stored"))
|
||||
{
|
||||
|
||||
@@ -499,10 +499,10 @@ public abstract class PartSidedPipe extends TMultiPart implements TSlottedPart,
|
||||
|
||||
public static enum ConnectionType
|
||||
{
|
||||
NONE,
|
||||
NORMAL,
|
||||
PUSH,
|
||||
PULL;
|
||||
PULL,
|
||||
NONE;
|
||||
|
||||
public static ConnectionType[] nextType = {NORMAL, PUSH, PULL, NONE};
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ public class TileEntityChemicalFormulator extends TileEntityElectricBlock implem
|
||||
gasTank.setGas(new GasStack(GasRegistry.getGas(dataStream.readInt()), dataStream.readInt()));
|
||||
}
|
||||
else {
|
||||
gasTank = null;
|
||||
gasTank.setGas(null);
|
||||
}
|
||||
|
||||
|
||||
@@ -264,7 +264,7 @@ public class TileEntityChemicalFormulator extends TileEntityElectricBlock implem
|
||||
isActive = nbtTags.getBoolean("isActive");
|
||||
controlType = RedstoneControl.values()[nbtTags.getInteger("controlType")];
|
||||
operatingTicks = nbtTags.getInteger("operatingTicks");
|
||||
gasTank = GasTank.readFromNBT(nbtTags.getCompoundTag("gasTank"));
|
||||
gasTank.read(nbtTags.getCompoundTag("gasTank"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -272,9 +272,9 @@ public class TileEntityChemicalInfuser extends TileEntityElectricBlock implement
|
||||
isActive = nbtTags.getBoolean("isActive");
|
||||
controlType = RedstoneControl.values()[nbtTags.getInteger("controlType")];
|
||||
|
||||
leftTank = GasTank.readFromNBT(nbtTags.getCompoundTag("leftTank"));
|
||||
rightTank = GasTank.readFromNBT(nbtTags.getCompoundTag("rightTank"));
|
||||
centerTank = GasTank.readFromNBT(nbtTags.getCompoundTag("centerTank"));
|
||||
leftTank.read(nbtTags.getCompoundTag("leftTank"));
|
||||
rightTank.read(nbtTags.getCompoundTag("rightTank"));
|
||||
centerTank.read(nbtTags.getCompoundTag("centerTank"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -159,7 +159,7 @@ public class TileEntityGasTank extends TileEntityContainerBlock implements IGasH
|
||||
{
|
||||
super.readFromNBT(nbtTags);
|
||||
|
||||
gasTank = GasTank.readFromNBT(nbtTags.getCompoundTag("gasTank"));
|
||||
gasTank.read(nbtTags.getCompoundTag("gasTank"));
|
||||
controlType = RedstoneControl.values()[nbtTags.getInteger("controlType")];
|
||||
}
|
||||
|
||||
|
||||
@@ -362,7 +362,7 @@ public class TileEntityRotaryCondensentrator extends TileEntityElectricBlock imp
|
||||
isActive = nbtTags.getBoolean("isActive");
|
||||
controlType = RedstoneControl.values()[nbtTags.getInteger("controlType")];
|
||||
|
||||
gasTank = GasTank.readFromNBT(nbtTags.getCompoundTag("gasTank"));
|
||||
gasTank.read(nbtTags.getCompoundTag("gasTank"));
|
||||
|
||||
if(nbtTags.hasKey("fluidTank"))
|
||||
{
|
||||
|
||||
@@ -34,7 +34,9 @@ public class VoiceServerManager
|
||||
public void stop()
|
||||
{
|
||||
try {
|
||||
listenThread.interrupt();
|
||||
try {
|
||||
listenThread.interrupt();
|
||||
} catch(Exception e) {}
|
||||
|
||||
foundLocal = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user