3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Merge pull request #1709 from KennyTV/abstraction

20w15a
Dieser Commit ist enthalten in:
Myles 2020-04-09 00:11:10 +01:00 committet von GitHub
Commit 14532bfa9a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
5 geänderte Dateien mit 2991 neuen und 1637 gelöschten Zeilen

Datei anzeigen

@ -154,7 +154,10 @@ public class MappingDataLoader {
Integer index = findIndex(newIdentifiers, value.getAsString());
if (index == null) {
if (diffIdentifiers != null) {
index = findIndex(newIdentifiers, diffIdentifiers.get(value.getAsString()).getAsString());
JsonElement diffElement = diffIdentifiers.get(value.getAsString());
if (diffElement != null) {
index = findIndex(newIdentifiers, diffElement.getAsString());
}
}
if (index == null) {
if (warnOnMissing && !Via.getConfig().isSuppressConversionWarnings() || Via.getManager().isDebug()) {

Datei anzeigen

@ -80,7 +80,7 @@ public class ProtocolVersion {
register(v1_15 = new ProtocolVersion(573, "1.15"));
register(v1_15_1 = new ProtocolVersion(575, "1.15.1"));
register(v1_15_2 = new ProtocolVersion(578, "1.15.2"));
register(v1_16 = new ProtocolVersion(710, "1.16"));
register(v1_16 = new ProtocolVersion(711, "1.16"));
register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
}

Datei anzeigen

@ -135,8 +135,10 @@ public class Protocol1_16To1_15_2 extends Protocol {
tagRewriter.addTag(TagType.BLOCK, "minecraft:beacon_base_blocks", 133, 134, 148, 265);
tagRewriter.addTag(TagType.BLOCK, "minecraft:climbable", 160, 241, 658);
tagRewriter.addTag(TagType.BLOCK, "minecraft:fire", 142);
tagRewriter.addTag(TagType.BLOCK, "minecraft:campfires", 679);
tagRewriter.addTag(TagType.ITEM, "minecraft:beacon_payment_items", 529, 530, 531, 760);
// The client crashes if we don't send all tags it may use
tagRewriter.addEmptyTag(TagType.BLOCK, "minecraft:guarded_by_piglins");
tagRewriter.addEmptyTag(TagType.BLOCK, "minecraft:soul_speed_blocks");
tagRewriter.addEmptyTag(TagType.BLOCK, "minecraft:soul_fire_base_blocks");
tagRewriter.addEmptyTag(TagType.BLOCK, "minecraft:non_flammable_wood");

Datei anzeigen

@ -6,7 +6,8 @@
"entity.zombie_pigman.ambient": "entity.zombified_piglin.ambient",
"entity.zombie_pigman.angry": "entity.zombified_piglin.angry",
"entity.zombie_pigman.death": "entity.zombified_piglin.death",
"entity.zombie_pigman.hurt": "entity.zombified_piglin.hurt"
"entity.zombie_pigman.hurt": "entity.zombified_piglin.hurt",
"music.nether": "music.nether.nether_wastes"
},
"blockstates": {
"5641": "minecraft:cobblestone_wall[east=tall,north=tall,south=tall,up=true,waterlogged=true,west=tall]",