3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Don't pass vanilla plugin channels to plugins. Fixes BUKKIT-2638

Vanilla has its own handlers for plugin channel messages for things like
texture packs, books, and anvils. When vanilla handles one of these messages
we should not also pass it to plugins because they will be duplicating work
and potentially running in to situations our plugin system isn't setup to
handle. This is how 1.3.2 worked but was lost in the 1.4.2 update.
Dieser Commit ist enthalten in:
Travis Watkins 2012-10-27 23:21:10 -05:00
Ursprung 60819c6693
Commit 5469311a36

Datei anzeigen

@ -1509,11 +1509,8 @@ public class NetServerHandler extends NetHandler {
containeranvil.a("");
}
}
}
}
// CraftBukkit start
if (packet250custompayload.tag.equals("REGISTER")) {
else if (packet250custompayload.tag.equals("REGISTER")) {
try {
String channels = new String(packet250custompayload.data, "UTF8");
for (String channel : channels.split("\0")) {
@ -1537,3 +1534,5 @@ public class NetServerHandler extends NetHandler {
// CraftBukkit end
}
}
}
}