forked from GeyserMC/Geyser
Merge pull request #293 from DoctorMacc/bees
Add entity flag for if bee has nectar
This commit is contained in:
commit
9c07371f7f
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ public class BeeEntity extends AnimalEntity {
|
||||||
if (entityMetadata.getId() == 16) {
|
if (entityMetadata.getId() == 16) {
|
||||||
byte xd = (byte) entityMetadata.getValue();
|
byte xd = (byte) entityMetadata.getValue();
|
||||||
metadata.getFlags().setFlag(EntityFlag.ANGRY, (xd & 0x02) == 0x02);
|
metadata.getFlags().setFlag(EntityFlag.ANGRY, (xd & 0x02) == 0x02);
|
||||||
|
// If the bee has nectar or not
|
||||||
|
metadata.getFlags().setFlag(EntityFlag.POWERED, (xd & 0x08) == 0x08);
|
||||||
}
|
}
|
||||||
super.updateBedrockMetadata(entityMetadata, session);
|
super.updateBedrockMetadata(entityMetadata, session);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue