mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 12:05:41 +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()) {
|
if (ViaVersion.getInstance().isCompatSpigotBuild()) {
|
||||||
Bukkit.broadcastMessage("COMPAT SPIGOT");
|
|
||||||
Class decodeSuper = NMSUtil.nms("PacketDecoder");
|
Class decodeSuper = NMSUtil.nms("PacketDecoder");
|
||||||
Class encodeSuper = NMSUtil.nms("PacketEncoder");
|
Class encodeSuper = NMSUtil.nms("PacketEncoder");
|
||||||
// Generate the classes
|
// Generate the classes
|
||||||
addSpigotCompatibility(pool, BukkitDecodeHandler.class, decodeSuper);
|
addSpigotCompatibility(pool, BukkitDecodeHandler.class, decodeSuper);
|
||||||
addSpigotCompatibility(pool, BukkitEncodeHandler.class, encodeSuper);
|
addSpigotCompatibility(pool, BukkitEncodeHandler.class, encodeSuper);
|
||||||
} else {
|
} else {
|
||||||
Bukkit.broadcastMessage("COMPAT PROTOCOLSUPPORT");
|
|
||||||
// ProtocolSupport compatibility
|
// ProtocolSupport compatibility
|
||||||
Class encodeSuper;
|
Class encodeSuper;
|
||||||
Class decodeSuper;
|
Class decodeSuper;
|
||||||
if (isMultiplatformPS()) {
|
if (isMultiplatformPS()) {
|
||||||
Bukkit.broadcastMessage("NEW PROTOCOLSUPPORT!");
|
|
||||||
psConnectListener = makePSConnectListener(pool);
|
psConnectListener = makePSConnectListener(pool);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@ -189,7 +186,6 @@ public class ClassGenerator {
|
|||||||
connectListenerClazz.setSuperclass(toExtend);
|
connectListenerClazz.setSuperclass(toExtend);
|
||||||
// Import packages
|
// Import packages
|
||||||
pool.importPackage("java.util.Arrays");
|
pool.importPackage("java.util.Arrays");
|
||||||
pool.importPackage("org.bukkit.Bukkit");
|
|
||||||
pool.importPackage("us.myles.ViaVersion.api.protocol.ProtocolRegistry");
|
pool.importPackage("us.myles.ViaVersion.api.protocol.ProtocolRegistry");
|
||||||
pool.importPackage("protocolsupport.api.ProtocolVersion");
|
pool.importPackage("protocolsupport.api.ProtocolVersion");
|
||||||
pool.importPackage("protocolsupport.api.ProtocolType");
|
pool.importPackage("protocolsupport.api.ProtocolType");
|
||||||
|
Loading…
Reference in New Issue
Block a user