mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-04 15:31:36 +00:00
Fix horse variant color
Our old method broke with the 1.17.10 update.
This commit is contained in:
@@ -40,7 +40,7 @@ public class HorseEntity extends AbstractHorseEntity {
|
||||
@Override
|
||||
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
|
||||
if (entityMetadata.getId() == 19) {
|
||||
metadata.put(EntityData.VARIANT, entityMetadata.getValue());
|
||||
metadata.put(EntityData.VARIANT, ((int) entityMetadata.getValue()) & 255);
|
||||
metadata.put(EntityData.MARK_VARIANT, (((int) entityMetadata.getValue()) >> 8) % 5);
|
||||
}
|
||||
super.updateBedrockMetadata(entityMetadata, session);
|
||||
|
||||
Reference in New Issue
Block a user