From 64727db67b5aadc521c0f388ea2a617045e2198a Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 25 Jul 2020 17:53:44 +0100 Subject: [PATCH] Fix Wolf anger display (#1021) --- .../entity/living/animal/tameable/WolfEntity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/entity/living/animal/tameable/WolfEntity.java b/connector/src/main/java/org/geysermc/connector/entity/living/animal/tameable/WolfEntity.java index aa578acb2..ab631ebe5 100644 --- a/connector/src/main/java/org/geysermc/connector/entity/living/animal/tameable/WolfEntity.java +++ b/connector/src/main/java/org/geysermc/connector/entity/living/animal/tameable/WolfEntity.java @@ -59,7 +59,12 @@ public class WolfEntity extends TameableEntity { if (entityMetadata.getId() == 19 && !metadata.getFlags().getFlag(EntityFlag.ANGRY)) { metadata.put(EntityData.COLOR, (byte) (int) entityMetadata.getValue()); } - //TODO: Anger time int? + + // Wolf anger (1.16+) + if (entityMetadata.getId() == 20) { + metadata.getFlags().setFlag(EntityFlag.ANGRY, (int) entityMetadata.getValue() != 0); + } + super.updateBedrockMetadata(entityMetadata, session); } }