mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-03-14 11:43:48 +01:00
Set Shulker Color by Default (#3648)
This commit is contained in:
parent
a7c04d5323
commit
2a8d8b6cdf
1 changed files with 9 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue