Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-30 18:10:12 +01:00
Commit
4b9d3e34ea
@ -80,7 +80,7 @@ public class ProtocolVersion {
|
|||||||
register(v1_15 = new ProtocolVersion(573, "1.15"));
|
register(v1_15 = new ProtocolVersion(573, "1.15"));
|
||||||
register(v1_15_1 = new ProtocolVersion(575, "1.15.1"));
|
register(v1_15_1 = new ProtocolVersion(575, "1.15.1"));
|
||||||
register(v1_15_2 = new ProtocolVersion(578, "1.15.2"));
|
register(v1_15_2 = new ProtocolVersion(578, "1.15.2"));
|
||||||
register(v1_16 = new ProtocolVersion(705, "1.16"));
|
register(v1_16 = new ProtocolVersion(706, "1.16"));
|
||||||
|
|
||||||
register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
|
register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
|
||||||
}
|
}
|
||||||
|
@ -32,11 +32,17 @@ public class MetadataRewriter1_16To1_15_2 extends MetadataRewriter {
|
|||||||
|
|
||||||
if (type == null) return;
|
if (type == null) return;
|
||||||
|
|
||||||
if (type.is(Entity1_16Types.EntityType.AREA_EFFECT_CLOUD)) {
|
if (type == Entity1_16Types.EntityType.AREA_EFFECT_CLOUD) {
|
||||||
if (metadata.getId() == 10) {
|
if (metadata.getId() == 10) {
|
||||||
Particle particle = (Particle) metadata.getValue();
|
Particle particle = (Particle) metadata.getValue();
|
||||||
particle.setId(WorldPackets.getNewParticleId(particle.getId()));
|
particle.setId(WorldPackets.getNewParticleId(particle.getId()));
|
||||||
}
|
}
|
||||||
|
} else if (type.isOrHasParent(Entity1_16Types.EntityType.ABSTRACT_ARROW)) {
|
||||||
|
if (metadata.getId() == 8) {
|
||||||
|
metadatas.remove(metadata);
|
||||||
|
} else if (metadata.getId() > 8) {
|
||||||
|
metadata.setId(metadata.getId() - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Datei-Diff unterdrückt, da er zu groß ist
Diff laden
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren