private final void method116(boolean bool) {
	anInt5172++;
	if (Class240.anInt4674 != 14) {
	    long l = (Class241.method1857((byte) -45) / 1000000L
		      + -Class348_Sub42_Sub2.aLong8573);
	    Class348_Sub42_Sub2.aLong8573
		= Class241.method1857((byte) -45) / 1000000L;
	    boolean bool_118_ = Class286_Sub6.method2163(!bool);
	    if (bool_118_ && EntityPacket.aBoolean1236
		&& Class348_Sub40.aClass279_7042 != null)
		Class348_Sub40.aClass279_7042.method2087(-115);
	    if (Class260.method1977((byte) -79, Class240.anInt4674)) {
		if (((Class348_Sub16_Sub2.aLong8866 ^ 0xffffffffffffffffL)
		     != -1L)
		    && Class62.getCurrentTimeMillis() > Class348_Sub16_Sub2.aLong8866)
		    Whirlpool.method830(Class348_Sub42_Sub12.method3229(),
				      Class321.anInt4005, (byte) 102, false,
				      Class348_Sub40_Sub25.anInt9335);
		else if (!Class348_Sub8.currentToolkit.method3655() && Class203.aBoolean2674)
		    BufferedPacket.method3327(1406);
	    }
	    if (Class34.aFrame476 == null) {
		java.awt.Container container;
		if (ColorNode.aFrame4904 == null) {
		    if (Class93.loaderApplet == null)
			container = Class348_Sub40_Sub9.anApplet_Sub1_9169;
		    else
			container = Class93.loaderApplet;
		} else
		    container = ColorNode.aFrame4904;
		int i = container.getSize().width;
		int i_119_ = container.getSize().height;
		if (container == ColorNode.aFrame4904) {
		    Insets insets = ColorNode.aFrame4904.getInsets();
		    i -= insets.left + insets.right;
		    i_119_ -= insets.top - -insets.bottom;
		}
		if ((Class272.anInt3473 ^ 0xffffffff) != (i ^ 0xffffffff)
		    || i_119_ != Class348_Sub22.anInt6857
		    || RuntimeException_Sub1.aBoolean4604) {
		    if (Class348_Sub8.currentToolkit == null || Class348_Sub8.currentToolkit.method3695())
			Class367_Sub11.method3556(false);
		    else {
			Class348_Sub22.anInt6857 = i_119_;
			Class272.anInt3473 = i;
		    }
		    Class348_Sub16_Sub2.aLong8866
			= Class62.getCurrentTimeMillis() - -500L;
		    RuntimeException_Sub1.aBoolean4604 = false;
		}
	    }
	    if (Class34.aFrame476 != null && !Class175.isWindowActive
		&& Class260.method1977((byte) -79, Class240.anInt4674))
		Whirlpool.method830(((Class348_Sub51)
				   BitmapTable.aClass348_Sub51_3959)
				      .aClass239_Sub8_7227.method1751(-32350),
				  -1, (byte) 102, false, -1);
	    boolean bool_120_ = false;
	    if (BufferedRasterizer.aBoolean4726) {
		bool_120_ = true;
		BufferedRasterizer.aBoolean4726 = false;
	    }
	    if (bool_120_)
		Class140.method1170((byte) -116);
	    if ((Class348_Sub8.currentToolkit != null
		 && Class348_Sub8.currentToolkit.method3655())
		|| (Class348_Sub42_Sub12.method3229() ^ 0xffffffff) != -2)
		Class354.method3466(-77);
	    if (Class139.method1167(Class240.anInt4674, (byte) -113))
		VarpHandler.method1309(bool_120_, 117);
	    else if (!WorldInfo.method2114(Class240.anInt4674, bool)) {
		if (!Class348_Sub42_Sub8.method3197(Class240.anInt4674,
						    (byte) 56)) {
		    if (Class318_Sub1_Sub1_Sub2.method2402(Class240.anInt4674,
							   (byte) -78)) {
			if ((Class36.anInt489 ^ 0xffffffff) == -2) {
			    if (Class268.failedMapArchives > Class348_Sub46.anInt7115)
				Class348_Sub46.anInt7115 = Class268.failedMapArchives;
			    int i = ((-Class268.failedMapArchives
				      + Class348_Sub46.anInt7115)
				     * 50 / Class348_Sub46.anInt7115);
			    Class362.method3511(true, ClientApplet.p12fullFontRasterizer,
						Class246.p12fullBitmapFont,
						(GameText.loadingPleaseWaitGameText
						     .getLanguageText
						 (Class348_Sub33.gameLanguage)) + "<br>(" + i + "%)",
						2, Class348_Sub8.currentToolkit);
			} else if (Class36.anInt489 != 2)
			    Class362.method3511(true, ClientApplet.p12fullFontRasterizer,
						Class246.p12fullBitmapFont,
						(GameText.loadingPleaseWaitGameText
						     .getLanguageText
						 (Class348_Sub33.gameLanguage)),
						2, Class348_Sub8.currentToolkit);
			else {
			    if (Class31.anInt443 < Class154.anInt2101)
				Class31.anInt443 = Class154.anInt2101;
			    int i = (((Class31.anInt443 - Class154.anInt2101)
				      * 50 / Class31.anInt443)
				     + 50);
			    Class362.method3511(true, ClientApplet.p12fullFontRasterizer,
						Class246.p12fullBitmapFont,
						(GameText.loadingPleaseWaitGameText
						     .getLanguageText
						 (Class348_Sub33.gameLanguage)) + "<br>(" + i + "%)",
						2, Class348_Sub8.currentToolkit);
			}
		    } else if ((Class240.anInt4674 ^ 0xffffffff) != -11) {
			if (Class240.anInt4674 == 13)
			    Class362.method3511(false,
						ClientApplet.p12fullFontRasterizer,
						Class246.p12fullBitmapFont,
						((GameText.connectionLostGameText
						      .getLanguageText
						  (Class348_Sub33.gameLanguage))
						 + "<br>"
						 + (GameText.restablishGameText
							.getLanguageText
						    (Class348_Sub33.gameLanguage))),
						2, Class348_Sub8.currentToolkit);
		    } else
			Class302.method2284((byte) -43, l);
		} else
		    Class239_Sub10.method1761(85);
	    } else
		Class239_Sub10.method1761(85);
	    if (NativeToolkit.anInt8045 == 3) {
		for (int i = 0; (i ^ 0xffffffff) > (Class348_Sub38.anInt7008
						    ^ 0xffffffff); i++) {
		    Rectangle rectangle = Class180.aRectangleArray2371[i];
		    if (Class175.aBooleanArray2326[i])
			Class348_Sub8.currentToolkit.method3668(rectangle.width,
							 rectangle.y, -65281,
							 rectangle.x,
							 rectangle.height, 46);
		    else if (!Class268.aBooleanArray3438[i])
			Class348_Sub8.currentToolkit.method3668(rectangle.width,
							 rectangle.y,
							 -16711936,
							 rectangle.x,
							 rectangle.height, 66);
		    else
			Class348_Sub8.currentToolkit.method3668(rectangle.width,
							 rectangle.y, -65536,
							 rectangle.x,
							 rectangle.height, 40);
		}
	    }
	    if (FileIndexRequest.isConsoleActive())
		Class6.drawConsole(Class348_Sub8.currentToolkit);
	    if (((Signlink) Class348_Sub23_Sub1.signlink).aBoolean3794
		&& Class260.method1977((byte) -79, Class240.anInt4674)
		&& NativeToolkit.anInt8045 == 0
		&& (Class348_Sub42_Sub12.method3229() ^ 0xffffffff) == -2
		&& !bool_120_) {
		int i = 0;
		for (int i_121_ = 0;
		     ((i_121_ ^ 0xffffffff)
		      > (Class348_Sub38.anInt7008 ^ 0xffffffff));
		     i_121_++) {
		    if (Class268.aBooleanArray3438[i_121_]) {
			Class268.aBooleanArray3438[i_121_] = false;
			Class190.aRectangleArray2554[i++]
			    = Class180.aRectangleArray2371[i_121_];
		    }
		}
		try {
		    if (!Class59_Sub1.aBoolean5300)
			Class348_Sub8.currentToolkit
			    .method3657(Class190.aRectangleArray2554, i, 66);
		    else
			Class140.method1168(i, 0,
					    Class190.aRectangleArray2554);
		} catch (ToolkitException exception_sub1) {
		    /* empty */
		}
	    } else if (!Class139.method1167(Class240.anInt4674, (byte) -59)) {
		for (int i = 0; Class348_Sub38.anInt7008 > i; i++)
		    Class268.aBooleanArray3438[i] = false;
		try {
		    if (Class59_Sub1.aBoolean5300)
			IndexLoader.method395(107);
		    else
			Class348_Sub8.currentToolkit.method3689((byte) 104);
		} catch (ToolkitException exception_sub1) {
		    Class156.method1242((exception_sub1.getMessage()
					 + " (Recovered) "
					 + getErrorMessage((byte) 79)),
					exception_sub1, 15004);
		    Class367_Sub10.method3553(false, (byte) 113, 0);
		}
	    }
	    Class62.method598(9013);
	    int i = ((Class348_Sub51) BitmapTable.aClass348_Sub51_3959)
			.aClass239_Sub17_7263.method1798(-32350);
	    if (i == 0)
		Class286_Sub5.method2161((byte) -127, 15L);
	    else if (i != 1) {
		if (i != 2) {
		    if (i == 3)
			Class286_Sub5.method2161((byte) -102, 2L);
		} else
		    Class286_Sub5.method2161((byte) -97, 5L);
	    } else
		Class286_Sub5.method2161((byte) -104, 10L);
	    if (GfxLoader.aBoolean3988)
		Class188.method1416(5);
	    if ((((Class348_Sub51) BitmapTable.aClass348_Sub51_3959)
		     .aClass239_Sub11_7265.method1768(-32350)
		 ^ 0xffffffff) == -2
		&& (Class240.anInt4674 ^ 0xffffffff) == -4
		&& (r.anInt9721 ^ 0xffffffff) != 0) {
		BitmapTable.aClass348_Sub51_3959.method3429
		    ((byte) 74,
		     (((Class348_Sub51) BitmapTable.aClass348_Sub51_3959)
		      .aClass239_Sub11_7265),
		     0);
		Class14_Sub2.method243(37);
	    }
	}
    }