Removed try catch from packet method in nuclear boiler allowing for caller to catch errors correctly
This commit is contained in:
parent
7531417f79
commit
9e0d9223a0
1 changed files with 3 additions and 13 deletions
|
@ -109,21 +109,11 @@ class TileNuclearBoiler extends TileElectricInventory(Material.iron) with IPacke
|
||||||
}
|
}
|
||||||
|
|
||||||
def read(data: ByteBuf, player: EntityPlayer, `type`: PacketType)
|
def read(data: ByteBuf, player: EntityPlayer, `type`: PacketType)
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
this.timer = data.readInt
|
this.timer = data.readInt
|
||||||
this.waterTank.setFluid(new FluidStack(AtomicContent.FLUIDSTACK_WATER.fluidID, data.readInt))
|
this.waterTank.setFluid(new FluidStack(AtomicContent.FLUIDSTACK_WATER.fluidID, data.readInt))
|
||||||
this.gasTank.setFluid(new FluidStack(AtomicContent.FLUIDSTACK_URANIUM_HEXAFLOURIDE.fluidID, data.readInt))
|
this.gasTank.setFluid(new FluidStack(AtomicContent.FLUIDSTACK_URANIUM_HEXAFLOURIDE.fluidID, data.readInt))
|
||||||
}
|
}
|
||||||
catch
|
|
||||||
{
|
|
||||||
case e: Exception =>
|
|
||||||
{
|
|
||||||
e.printStackTrace
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override def getDescriptionPacket: Packet =
|
override def getDescriptionPacket: Packet =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue