mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 18:15:39 +01:00
3/2 Hopefully fix all the space thingies.
This commit is contained in:
parent
f6ae076731
commit
0a8fc31be1
@ -38,19 +38,16 @@ public class ClassGenerator {
|
||||
}
|
||||
|
||||
if (ViaVersion.getInstance().isCompatSpigotBuild()) {
|
||||
Bukkit.broadcastMessage("COMPAT SPIGOT");
|
||||
Class decodeSuper = NMSUtil.nms("PacketDecoder");
|
||||
Class encodeSuper = NMSUtil.nms("PacketEncoder");
|
||||
// Generate the classes
|
||||
addSpigotCompatibility(pool, BukkitDecodeHandler.class, decodeSuper);
|
||||
addSpigotCompatibility(pool, BukkitEncodeHandler.class, encodeSuper);
|
||||
} else {
|
||||
Bukkit.broadcastMessage("COMPAT PROTOCOLSUPPORT");
|
||||
// ProtocolSupport compatibility
|
||||
Class encodeSuper;
|
||||
Class decodeSuper;
|
||||
if (isMultiplatformPS()) {
|
||||
Bukkit.broadcastMessage("NEW PROTOCOLSUPPORT!");
|
||||
psConnectListener = makePSConnectListener(pool);
|
||||
return;
|
||||
} else {
|
||||
@ -189,7 +186,6 @@ public class ClassGenerator {
|
||||
connectListenerClazz.setSuperclass(toExtend);
|
||||
// Import packages
|
||||
pool.importPackage("java.util.Arrays");
|
||||
pool.importPackage("org.bukkit.Bukkit");
|
||||
pool.importPackage("us.myles.ViaVersion.api.protocol.ProtocolRegistry");
|
||||
pool.importPackage("protocolsupport.api.ProtocolVersion");
|
||||
pool.importPackage("protocolsupport.api.ProtocolType");
|
||||
|
Loading…
Reference in New Issue
Block a user