mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-25 12:15:14 +01:00
Dump client-sided version
This commit is contained in:
parent
e41d7195c3
commit
79ab452ec8
@ -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)
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user