Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Fix 1.15->1.16 wolf anger
Dieser Commit ist enthalten in:
Ursprung
9ee548b967
Commit
7ffcff7a7b
@ -66,6 +66,14 @@ public class MetadataRewriter1_16To1_15_2 extends EntityRewriter<Protocol1_16To1
|
|||||||
metadata.setId(metadata.id() - 1);
|
metadata.setId(metadata.id() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == Entity1_16Types.WOLF) {
|
||||||
|
if (metadata.id() == 16) {
|
||||||
|
byte mask = metadata.value();
|
||||||
|
int angerTime = (mask & 0x02) != 0 ? Integer.MAX_VALUE : 0;
|
||||||
|
metadatas.add(new Metadata(20, MetaType1_16.VAR_INT, angerTime));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -130,7 +130,7 @@ public abstract class EntityRewriter<T extends Protocol> extends RewriterBase<T>
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event != null && event.extraMeta() != null) {
|
if (event != null && event.extraMeta() != null) {
|
||||||
// Finally add newly created meta
|
// Finally, add newly created meta
|
||||||
metadataList.addAll(event.extraMeta());
|
metadataList.addAll(event.extraMeta());
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren