Dump client-sided version

This commit is contained in:
creeper123123321 2019-04-05 14:55:59 -03:00
parent e41d7195c3
commit 79ab452ec8
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,7 @@ tasks.named<ProcessResources>("processResources") {
))
}
val shade by configurations.creating
val shade: Configuration by configurations.creating
configurations.getByName("compile").extendsFrom(shade)
dependencies {
@ -88,6 +88,6 @@ minecraft {
// If you remove this task, sources will not be generated.
tasks.register<Jar>("sourcesJar") {
dependsOn(tasks.getByName("classes"))
classifier = "sources"
archiveClassifier.set("sources")
from(sourceSets.getByName("main").allSource)
}

View File

@ -28,6 +28,7 @@ import com.github.creeper123123321.viafabric.ViaFabric;
import com.github.creeper123123321.viafabric.commands.NMSCommandSender;
import com.github.creeper123123321.viafabric.commands.UserCommandSender;
import com.github.creeper123123321.viafabric.protocol.ClientSideReference;
import com.github.creeper123123321.viafabric.providers.VRVersionProvider;
import com.github.creeper123123321.viafabric.util.FutureTaskId;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@ -51,6 +52,7 @@ import us.myles.ViaVersion.api.platform.ViaPlatform;
import us.myles.ViaVersion.api.type.Type;
import us.myles.ViaVersion.dump.PluginInfo;
import us.myles.ViaVersion.exception.CancelException;
import us.myles.ViaVersion.protocols.base.VersionProvider;
import us.myles.ViaVersion.protocols.protocol1_13to1_12_2.ChatRewriter;
import us.myles.ViaVersion.sponge.VersionInfo;
import us.myles.ViaVersion.util.GsonUtil;
@ -281,6 +283,7 @@ public class VRPlatform implements ViaPlatform {
}
platformSpecific.add("mods", GsonUtil.getGson().toJsonTree(mods));
platformSpecific.addProperty("client-sided-version", ((VRVersionProvider) Via.getManager().getProviders().get(VersionProvider.class)).clientSideModeVersion);
return platformSpecific;
}