<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ThreadQuickExitException]]></title><description><![CDATA[<p dir="auto">im trying to delay velocity packet</p>
<p dir="auto">code:</p>
<pre><code>                "Delay" -&gt; {
                    event.cancelEvent()

                    Timer("Delay", true).schedule(delayValue.get().toLong()) {
                        packet.processPacket(mc.netHandler)
                    }
                }
</code></pre>
<p dir="auto">error:</p>
<pre><code>Exception in thread "Delay" [23:45:26] [Delay/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraft.network.ThreadQuickExitException
</code></pre>
]]></description><link>https://forum.liquidbounce.net/topic/2965/threadquickexitexception</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 03:56:54 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/2965.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Aug 2021 20:47:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ThreadQuickExitException on Thu, 26 Aug 2021 13:20:59 GMT]]></title><description><![CDATA[<p dir="auto">ik and i forgot that this is client side, instead of sendPacket try channelread0</p>
]]></description><link>https://forum.liquidbounce.net/post/23720</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/23720</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 26 Aug 2021 13:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to ThreadQuickExitException on Thu, 26 Aug 2021 09:53:25 GMT]]></title><description><![CDATA[<p dir="auto">that's on kotlin</p>
<pre><code>"Delay" -&gt; {
	e.cancelEvent();
	Timer().schedule(TimerTask() {
		override fun run() {
                     packet.processPacket(mc.netHandler)
		}
	}, delayValue.get());
}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/23709</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/23709</guid><dc:creator><![CDATA[dntdbt]]></dc:creator><pubDate>Thu, 26 Aug 2021 09:53:25 GMT</pubDate></item><item><title><![CDATA[Reply to ThreadQuickExitException on Wed, 25 Aug 2021 21:08:13 GMT]]></title><description><![CDATA[<p dir="auto">@here you need to re-send a packet, but if you send a packet it will loop. so copy the method "Send Packet" in net.minecraft.network.NetworkManager, rename it to sendPacketNoEvent and remove all of the event related stuff, now you can go to your disgusting kotlin code and have a variable with a timer in it. so it will be something like:</p>
<pre><code>Timer download = new Timer("Velocity Delay"); // not sure what "true" means
...
case "Delay":
	e.cancelEvent();
	download.schedule(new TimerTask() {
		@Override
		public void run(){
			if(mc.thePlayer != null &amp;&amp; mc.thePlayer.ticksExisted != 0){
				mc.getNetHandler().getNetworkManager().sendPacketNoEvent(e.getPacket());
				mc.shutdown();
			}
		}
	}, delayValue.get());
break;
</code></pre>
<p dir="auto">(btw this is in java if you didn't know lmao)<br />
and sendPacketNoEvent should be like this:</p>
<pre><code>public void sendPacketNoEvent(Packet packetIn) {
    if (this.isChannelOpen()) {
        this.flushOutboundQueue();
        this.dispatchPacket(packetIn, null);
    } else {
        this.field_181680_j.writeLock().lock();
        try {
        	this.outboundPacketsQueue.add(new NetworkManager.InboundHandlerTuplePacketListener(packetIn, (GenericFutureListener[]) null));
        } finally {
        	this.field_181680_j.writeLock().unlock();
   		}
    }
}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/23703</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/23703</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 25 Aug 2021 21:08:13 GMT</pubDate></item></channel></rss>