Removed try catch from packet method in nuclear boiler allowing for caller to catch errors correctly

This commit is contained in:
Robert S 2014-10-09 19:32:19 -04:00
parent 7531417f79
commit 9e0d9223a0

View file

@ -110,19 +110,9 @@ 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.waterTank.setFluid(new FluidStack(AtomicContent.FLUIDSTACK_WATER.fluidID, data.readInt))
this.timer = data.readInt this.gasTank.setFluid(new FluidStack(AtomicContent.FLUIDSTACK_URANIUM_HEXAFLOURIDE.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))
}
catch
{
case e: Exception =>
{
e.printStackTrace
}
}
} }
override def getDescriptionPacket: Packet = override def getDescriptionPacket: Packet =