mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Throw packet encoding exceptions instead of suppressing them, to prevent corrupt packets (#4144)
This commit is contained in:
1 parent
a886dbde49
commit
3847a2cf5d
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
--- ../src-base/minecraft/net/minecraft/network/NettyPacketEncoder.java
|
||||
+++ ../src-work/minecraft/net/minecraft/network/NettyPacketEncoder.java
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
catch (Throwable throwable)
|
||||
{
|
||||
- field_150798_a.error(throwable);
|
||||
+ throw throwable; // Forge: throw this instead of logging it, to prevent corrupt packets from being sent to the client where they are much harder to debug.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user