Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Run zombie rewrite before zombie villager rewrite
Dieser Commit ist enthalten in:
Ursprung
8b5f6d1e67
Commit
4eb69eac66
@ -53,6 +53,16 @@ public class MetadataRewriter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type.isOrHasParent(Entity1_14Types.EntityType.ZOMBIE)) {
|
||||||
|
if (metadata.getId() == 16) {
|
||||||
|
tracker.setInsentientData(entityId, (byte) ((tracker.getInsentientData(entityId) & ~0x4)
|
||||||
|
| ((boolean) metadata.getValue() ? 0x4 : 0))); // New attacking
|
||||||
|
metadatas.remove(metadata); // "Are hands held up"
|
||||||
|
metadatas.add(new Metadata(13, MetaType1_14.Byte, tracker.getInsentientData(entityId)));
|
||||||
|
} else if (metadata.getId() > 16) {
|
||||||
|
metadata.setId(metadata.getId() - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (type.isOrHasParent(Entity1_14Types.EntityType.MINECART_ABSTRACT)) {
|
if (type.isOrHasParent(Entity1_14Types.EntityType.MINECART_ABSTRACT)) {
|
||||||
if (metadata.getId() == 10) {
|
if (metadata.getId() == 10) {
|
||||||
// New block format
|
// New block format
|
||||||
@ -107,15 +117,6 @@ public class MetadataRewriter {
|
|||||||
metadatas.remove(metadata); // "Is swinging arms"
|
metadatas.remove(metadata); // "Is swinging arms"
|
||||||
metadatas.add(new Metadata(13, MetaType1_14.Byte, tracker.getInsentientData(entityId)));
|
metadatas.add(new Metadata(13, MetaType1_14.Byte, tracker.getInsentientData(entityId)));
|
||||||
}
|
}
|
||||||
} else if (type.isOrHasParent(Entity1_14Types.EntityType.ZOMBIE)) {
|
|
||||||
if (metadata.getId() == 16) {
|
|
||||||
tracker.setInsentientData(entityId, (byte) ((tracker.getInsentientData(entityId) & ~0x4)
|
|
||||||
| ((boolean) metadata.getValue() ? 0x4 : 0))); // New attacking
|
|
||||||
metadatas.remove(metadata); // "Are hands held up"
|
|
||||||
metadatas.add(new Metadata(13, MetaType1_14.Byte, tracker.getInsentientData(entityId)));
|
|
||||||
} else if (metadata.getId() > 16) {
|
|
||||||
metadata.setId(metadata.getId() - 1);
|
|
||||||
}
|
|
||||||
} else if (type.is(Entity1_14Types.EntityType.AREA_EFFECT_CLOUD)) {
|
} else if (type.is(Entity1_14Types.EntityType.AREA_EFFECT_CLOUD)) {
|
||||||
if (metadata.getId() == 10) {
|
if (metadata.getId() == 10) {
|
||||||
Particle particle = (Particle) metadata.getValue();
|
Particle particle = (Particle) metadata.getValue();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren