mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix baby armorstands showing even when invisible
This commit is contained in:
parent
2d70ba43c9
commit
18a50d4e3e
2 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ public class Entity {
|
|||
metadata.getFlags().setFlag(EntityFlag.GLIDING, (xd & 0x80) == 0x80);
|
||||
// metadata.getFlags().setFlag(EntityFlag.INVISIBLE, (xd & 0x20) == 0x20);
|
||||
if ((xd & 0x20) == 0x20)
|
||||
metadata.put(EntityData.SCALE, 0.01f);
|
||||
metadata.put(EntityData.SCALE, 0.0f);
|
||||
else
|
||||
metadata.put(EntityData.SCALE, scale);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class ArmorStandEntity extends LivingEntity {
|
|||
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
|
||||
if (entityMetadata.getType() == MetadataType.BYTE) {
|
||||
byte xd = (byte) entityMetadata.getValue();
|
||||
if((xd & 0x01) == 0x01) {
|
||||
if((xd & 0x01) == 0x01 && !(metadata.get(EntityData.SCALE).equals(0.0f))) {
|
||||
metadata.put(EntityData.SCALE, .55f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue