Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Reset wolf color
Dieser Commit ist enthalten in:
Ursprung
46989fb6b5
Commit
36b549be39
@ -49,16 +49,14 @@ public class WolfEntity extends TameableEntity {
|
|||||||
if (entityMetadata.getId() == 16) {
|
if (entityMetadata.getId() == 16) {
|
||||||
byte xd = (byte) entityMetadata.getValue();
|
byte xd = (byte) entityMetadata.getValue();
|
||||||
boolean angry = (xd & 0x02) == 0x02;
|
boolean angry = (xd & 0x02) == 0x02;
|
||||||
boolean tamed = (xd & 0x04) == 0x04;
|
if (angry) {
|
||||||
if (angry || !tamed) {
|
|
||||||
metadata.put(EntityData.COLOR, (byte) 0);
|
metadata.put(EntityData.COLOR, (byte) 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wolf collar color
|
// Wolf collar color
|
||||||
// Relies on EntityData.OWNER_EID being set in TameableEntity.java
|
// Relies on EntityData.OWNER_EID being set in TameableEntity.java
|
||||||
boolean tamed = !metadata.getFlags().getFlag(EntityFlag.ANGRY) && metadata.getFlags().getFlag(EntityFlag.TAMED);
|
if (entityMetadata.getId() == 19 && !metadata.getFlags().getFlag(EntityFlag.ANGRY)) {
|
||||||
if (entityMetadata.getId() == 19 && tamed) {
|
|
||||||
metadata.put(EntityData.COLOR, (byte) (int) entityMetadata.getValue());
|
metadata.put(EntityData.COLOR, (byte) (int) entityMetadata.getValue());
|
||||||
}
|
}
|
||||||
super.updateBedrockMetadata(entityMetadata, session);
|
super.updateBedrockMetadata(entityMetadata, session);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren