From 9e0d9223a0549ea345526eded3df5d3d7bfbd7e7 Mon Sep 17 00:00:00 2001 From: Robert S Date: Thu, 9 Oct 2014 19:32:19 -0400 Subject: [PATCH] Removed try catch from packet method in nuclear boiler allowing for caller to catch errors correctly --- .../machine/boiler/TileNuclearBoiler.scala | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/main/scala/resonantinduction/atomic/machine/boiler/TileNuclearBoiler.scala b/src/main/scala/resonantinduction/atomic/machine/boiler/TileNuclearBoiler.scala index 8f4d8e9e7..488449eaf 100644 --- a/src/main/scala/resonantinduction/atomic/machine/boiler/TileNuclearBoiler.scala +++ b/src/main/scala/resonantinduction/atomic/machine/boiler/TileNuclearBoiler.scala @@ -110,19 +110,9 @@ class TileNuclearBoiler extends TileElectricInventory(Material.iron) with IPacke def read(data: ByteBuf, player: EntityPlayer, `type`: PacketType) { - try - { - this.timer = 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)) - } - catch - { - case e: Exception => - { - e.printStackTrace - } - } + this.timer = 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)) } override def getDescriptionPacket: Packet =