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
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue