From 67d5993ae10a259a4a6b3dbf0791d9b592fa18bf Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Fri, 20 Nov 2020 18:06:27 -0500 Subject: [PATCH] LivingEntity: add visual support for riptide spin attack (#1551) --- .../main/java/org/geysermc/connector/entity/LivingEntity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connector/src/main/java/org/geysermc/connector/entity/LivingEntity.java b/connector/src/main/java/org/geysermc/connector/entity/LivingEntity.java index 345c19de..4ca0a865 100644 --- a/connector/src/main/java/org/geysermc/connector/entity/LivingEntity.java +++ b/connector/src/main/java/org/geysermc/connector/entity/LivingEntity.java @@ -77,6 +77,9 @@ public class LivingEntity extends Entity { getHand().equals(ItemData.AIR) && getOffHand().getId() == ItemRegistry.SHIELD.getBedrockId()); metadata.getFlags().setFlag(EntityFlag.USING_ITEM, (xd & 0x01) == 0x01 && !isUsingShield); metadata.getFlags().setFlag(EntityFlag.BLOCKING, (xd & 0x01) == 0x01); + + // Riptide spin attack + metadata.getFlags().setFlag(EntityFlag.DAMAGE_NEARBY_MOBS, (xd & 0x04) == 0x04); break; case 8: metadata.put(EntityData.HEALTH, entityMetadata.getValue());