3/2 Hopefully fix all the space thingies.

This commit is contained in:
7kasper 2018-09-10 21:45:26 +02:00 committed by GitHub
parent f6ae076731
commit 0a8fc31be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");