mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-03 05:11:21 +01:00
Fix 1.15->1.16 wolf anger
This commit is contained in:
parent
9ee548b967
commit
7ffcff7a7b
@ -66,6 +66,14 @@ public class MetadataRewriter1_16To1_15_2 extends EntityRewriter<Protocol1_16To1
|
||||
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
|
||||
|
@ -130,7 +130,7 @@ public abstract class EntityRewriter<T extends Protocol> extends RewriterBase<T>
|
||||
}
|
||||
|
||||
if (event != null && event.extraMeta() != null) {
|
||||
// Finally add newly created meta
|
||||
// Finally, add newly created meta
|
||||
metadataList.addAll(event.extraMeta());
|
||||
}
|
||||
i++;
|
||||
|
Loading…
Reference in New Issue
Block a user