Remove comment in AgeableEntity as it no longer true

This was due to the wrong entity IDs in MCProtocolLib, which have since been patched.
This commit is contained in:
RednedEpic 2019-12-18 20:53:20 -06:00
parent 42ac37fe40
commit 49caffc73e

View file

@ -41,13 +41,7 @@ public class AgeableEntity extends CreatureEntity {
@Override
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
if (entityMetadata.getId() == 15) {
// TODO: Figure out why this value sometimes returns an integer
// At the time of writing this, the value here sometimes returns as an int
// rather than a boolean for donkeys. The wiki.vg documentation is lacking at the
// time of writing this, but once this value is known, the bug will be fixed accordingly.
if (entityMetadata.getType() == MetadataType.BOOLEAN) {
metadata.getFlags().setFlag(EntityFlag.BABY, (boolean) entityMetadata.getValue());
}
metadata.getFlags().setFlag(EntityFlag.BABY, (boolean) entityMetadata.getValue());
}
super.updateBedrockMetadata(entityMetadata, session);