1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-30 20:29:19 +00:00

Set Shulker Color by Default (#3648)

This commit is contained in:
Kas-tle
2023-03-28 08:18:21 -07:00
committed by GitHub
parent a7c04d5323
commit 2a8d8b6cdf

View File

@@ -43,6 +43,15 @@ public class ShulkerEntity extends GolemEntity {
super(session, entityId, geyserId, uuid, definition, position, motion, yaw, pitch, headYaw);
// Indicate that invisibility should be fixed through the resource pack
setFlag(EntityFlag.BRIBED, true);
}
@Override
protected void initializeMetadata() {
super.initializeMetadata();
// As of 1.19.4, it seems Java no longer sends the shulker color if it's the default color on initial spawn
// We still need the special case for 16 color in setShulkerColor though as it will send it for an entity metadata update
dirtyMetadata.put(EntityData.VARIANT, 16);
}
public void setAttachedFace(EntityMetadata<Direction, ?> entityMetadata) {