3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

Remove comment in AgeableEntity as it no longer true

This was due to the wrong entity IDs in MCProtocolLib, which have since been patched.
Dieser Commit ist enthalten in:
RednedEpic 2019-12-18 20:53:20 -06:00
Ursprung 42ac37fe40
Commit 49caffc73e

Datei anzeigen

@ -41,13 +41,7 @@ public class AgeableEntity extends CreatureEntity {
@Override @Override
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) { public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
if (entityMetadata.getId() == 15) { if (entityMetadata.getId() == 15) {
// TODO: Figure out why this value sometimes returns an integer metadata.getFlags().setFlag(EntityFlag.BABY, (boolean) entityMetadata.getValue());
// 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());
}
} }
super.updateBedrockMetadata(entityMetadata, session); super.updateBedrockMetadata(entityMetadata, session);