3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-20 06:50:09 +01:00

Set Shulker Color by Default (#3648)

Dieser Commit ist enthalten in:
Kas-tle 2023-03-28 08:18:21 -07:00 committet von GitHub
Ursprung a7c04d5323
Commit 2a8d8b6cdf
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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) {