Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Add some small debug for refcount issues with plugin messages.
Dieser Commit ist enthalten in:
Ursprung
07b95d46ac
Commit
7fe2fc71e9
@ -63,6 +63,12 @@ public class PluginMessage extends DeferredByteBufHolder implements MinecraftPac
|
|||||||
if (channel == null) {
|
if (channel == null) {
|
||||||
throw new IllegalStateException("Channel is not specified.");
|
throw new IllegalStateException("Channel is not specified.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (refCnt() == 0) {
|
||||||
|
throw new IllegalStateException("Plugin message contents for " + this.channel
|
||||||
|
+ " freed too many times.");
|
||||||
|
}
|
||||||
|
|
||||||
if (version.compareTo(ProtocolVersion.MINECRAFT_1_13) >= 0) {
|
if (version.compareTo(ProtocolVersion.MINECRAFT_1_13) >= 0) {
|
||||||
ProtocolUtils.writeString(buf, transformLegacyToModernChannel(this.channel));
|
ProtocolUtils.writeString(buf, transformLegacyToModernChannel(this.channel));
|
||||||
} else {
|
} else {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren