3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-09 17:50:23 +01:00

fixed some metadata

Dieser Commit ist enthalten in:
creeper123123321 2019-04-21 16:32:59 -03:00
Ursprung 3a4db0a675
Commit 8b5f6d1e67
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1

Datei anzeigen

@ -86,13 +86,13 @@ public class MetadataRewriter {
metadata.setMetaType(MetaType1_14.VillagerData); metadata.setMetaType(MetaType1_14.VillagerData);
} }
} else if (type.is(Entity1_14Types.EntityType.ZOMBIE_VILLAGER)) { } else if (type.is(Entity1_14Types.EntityType.ZOMBIE_VILLAGER)) {
if (metadata.getId() == 19) { if (metadata.getId() == 18) {
// plains // plains
metadata.setValue(new VillagerData(2, getNewProfessionId((int) metadata.getValue()), 0)); metadata.setValue(new VillagerData(2, getNewProfessionId((int) metadata.getValue()), 0));
metadata.setMetaType(MetaType1_14.VillagerData); metadata.setMetaType(MetaType1_14.VillagerData);
} }
} else if (type.isOrHasParent(Entity1_14Types.EntityType.ARROW)) { } else if (type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ARROW)) {
if (metadata.getId() >= 9) { if (metadata.getId() >= 9) { // New piercing
metadata.setId(metadata.getId() + 1); metadata.setId(metadata.getId() + 1);
} }
} else if (type.is(Entity1_14Types.EntityType.FIREWORKS_ROCKET)) { } else if (type.is(Entity1_14Types.EntityType.FIREWORKS_ROCKET)) {
@ -134,7 +134,7 @@ public class MetadataRewriter {
// TODO Are witch and ravager also abstract illagers? They all inherit the new metadata 14 added in 19w13a // TODO Are witch and ravager also abstract illagers? They all inherit the new metadata 14 added in 19w13a
if (type.is(Entity1_14Types.EntityType.WITCH) || type.is(Entity1_14Types.EntityType.RAVAGER) || type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ILLAGER_BASE)) { if (type.is(Entity1_14Types.EntityType.WITCH) || type.is(Entity1_14Types.EntityType.RAVAGER) || type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ILLAGER_BASE)) {
if (metadata.getId() >= 14) { // TODO 19w13 added a new boolean with id 14 if (metadata.getId() >= 14) { // TODO 19w13 added a new boolean (raid participant - is celebrating) with id 14
metadata.setId(metadata.getId() + 1); metadata.setId(metadata.getId() + 1);
} }
} }