forked from GeyserMC/Geyser
Make sure scale is not null when setting armor stand as baby
If it's null, it's invisible.
This commit is contained in:
parent
4c87a13e25
commit
09e4bbd8ca
1 changed files with 1 additions and 1 deletions
|
@ -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 && !(metadata.get(EntityData.SCALE).equals(0.0f))) {
|
||||
if ((xd & 0x01) == 0x01 && (metadata.get(EntityData.SCALE) != null && !metadata.get(EntityData.SCALE).equals(0.0f))) {
|
||||
metadata.put(EntityData.SCALE, .55f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue