From 2a8d8b6cdfcfbcd633262bf380fab3ca58597e86 Mon Sep 17 00:00:00 2001 From: Kas-tle <26531652+Kas-tle@users.noreply.github.com> Date: Tue, 28 Mar 2023 08:18:21 -0700 Subject: [PATCH] Set Shulker Color by Default (#3648) --- .../geyser/entity/type/living/monster/ShulkerEntity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/org/geysermc/geyser/entity/type/living/monster/ShulkerEntity.java b/core/src/main/java/org/geysermc/geyser/entity/type/living/monster/ShulkerEntity.java index ff1ba9ac3..e484dfc59 100644 --- a/core/src/main/java/org/geysermc/geyser/entity/type/living/monster/ShulkerEntity.java +++ b/core/src/main/java/org/geysermc/geyser/entity/type/living/monster/ShulkerEntity.java @@ -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 entityMetadata) {