mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-19 16:28:13 +01:00
Add VB version to dumps
This commit is contained in:
parent
11417fa04e
commit
345d78976a
43
all/pom.xml
43
all/pom.xml
@ -27,6 +27,37 @@
|
|||||||
<defaultGoal>clean install</defaultGoal>
|
<defaultGoal>clean install</defaultGoal>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!-- Write git commit hash into build properties -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>net.md-5</groupId>
|
||||||
|
<artifactId>scriptus</artifactId>
|
||||||
|
<version>0.3.2</version>
|
||||||
|
<configuration>
|
||||||
|
<format>git-ViaBackwards-${project.parent.version}:%s</format>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>describe</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.2.0</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifestEntries>
|
||||||
|
<!--suppress MavenModelInspection -->
|
||||||
|
<Implementation-Version>${describe}</Implementation-Version>
|
||||||
|
</manifestEntries>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
@ -46,22 +77,10 @@
|
|||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
<minimizeJar>false</minimizeJar>
|
<minimizeJar>false</minimizeJar>
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
|
||||||
<pattern>com.github.steveice10.opennbt</pattern>
|
|
||||||
<shadedPattern>us.myles.viaversion.libs.opennbt</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.google.gson</pattern>
|
<pattern>com.google.gson</pattern>
|
||||||
<shadedPattern>us.myles.viaversion.libs.gson</shadedPattern>
|
<shadedPattern>us.myles.viaversion.libs.gson</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
|
||||||
<pattern>javassist</pattern>
|
|
||||||
<shadedPattern>us.myles.viaversion.libs.javassist</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>org.yaml.snakeyaml</pattern>
|
|
||||||
<shadedPattern>us.myles.viaversion.libs.snakeyaml</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>net.md_5.bungee</pattern>
|
<pattern>net.md_5.bungee</pattern>
|
||||||
<shadedPattern>us.myles.viaversion.libs.bungeecordchat</shadedPattern>
|
<shadedPattern>us.myles.viaversion.libs.bungeecordchat</shadedPattern>
|
||||||
|
@ -55,6 +55,8 @@ public interface ViaBackwardsPlatform {
|
|||||||
|
|
||||||
if (isOutdated()) return;
|
if (isOutdated()) return;
|
||||||
|
|
||||||
|
Via.getManager().getSubPlatforms().add(ViaBackwards.class.getPackage().getImplementationVersion());
|
||||||
|
|
||||||
getLogger().info("Loading translations...");
|
getLogger().info("Loading translations...");
|
||||||
TranslatableRewriter.loadTranslatables();
|
TranslatableRewriter.loadTranslatables();
|
||||||
|
|
||||||
|
@ -160,8 +160,10 @@ public class BlockItemPackets1_16 extends nl.matsv.viabackwards.api.rewriters.It
|
|||||||
} else if (id.equals("minecraft:skull") && blockEntity.get("SkullOwner") instanceof CompoundTag) {
|
} else if (id.equals("minecraft:skull") && blockEntity.get("SkullOwner") instanceof CompoundTag) {
|
||||||
CompoundTag skullOwnerTag = blockEntity.remove("SkullOwner");
|
CompoundTag skullOwnerTag = blockEntity.remove("SkullOwner");
|
||||||
IntArrayTag ownerUuidTag = skullOwnerTag.remove("Id");
|
IntArrayTag ownerUuidTag = skullOwnerTag.remove("Id");
|
||||||
UUID ownerUuid = UUIDIntArrayType.uuidFromIntArray(ownerUuidTag.getValue());
|
if (ownerUuidTag != null) {
|
||||||
skullOwnerTag.put(new StringTag("Id", ownerUuid.toString()));
|
UUID ownerUuid = UUIDIntArrayType.uuidFromIntArray(ownerUuidTag.getValue());
|
||||||
|
skullOwnerTag.put(new StringTag("Id", ownerUuid.toString()));
|
||||||
|
}
|
||||||
|
|
||||||
// SkullOwner -> Owner
|
// SkullOwner -> Owner
|
||||||
CompoundTag ownerTag = new CompoundTag("Owner");
|
CompoundTag ownerTag = new CompoundTag("Owner");
|
||||||
|
Loading…
Reference in New Issue
Block a user