From 99824e1e4ce44b946622ab13ad5c15ad65d7a75b Mon Sep 17 00:00:00 2001 From: Final Child Date: Wed, 25 May 2016 16:39:02 +0900 Subject: [PATCH] Fix #159 (Effect) --- src/main/java/org/spacehq/mc/protocol/data/MagicValues.java | 4 ++++ .../org/spacehq/mc/protocol/data/game/entity/Effect.java | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/spacehq/mc/protocol/data/MagicValues.java b/src/main/java/org/spacehq/mc/protocol/data/MagicValues.java index d124567f..b198e8cf 100644 --- a/src/main/java/org/spacehq/mc/protocol/data/MagicValues.java +++ b/src/main/java/org/spacehq/mc/protocol/data/MagicValues.java @@ -265,6 +265,10 @@ public class MagicValues { register(Effect.HEALTH_BOOST, 21); register(Effect.ABSORPTION, 22); register(Effect.SATURATION, 23); + register(Effect.GLOWING, 24); + register(Effect.LEVITATION, 25); + register(Effect.LUCK, 26); + register(Effect.BAD_LUCK, 27); register(EntityStatus.HURT_OR_MINECART_SPAWNER_DELAY_RESET, 1); register(EntityStatus.LIVING_HURT, 2); diff --git a/src/main/java/org/spacehq/mc/protocol/data/game/entity/Effect.java b/src/main/java/org/spacehq/mc/protocol/data/game/entity/Effect.java index 4ca9f231..a8d02919 100644 --- a/src/main/java/org/spacehq/mc/protocol/data/game/entity/Effect.java +++ b/src/main/java/org/spacehq/mc/protocol/data/game/entity/Effect.java @@ -24,6 +24,10 @@ public enum Effect { WITHER_EFFECT, HEALTH_BOOST, ABSORPTION, - SATURATION; + SATURATION, + GLOWING, + LEVITATION, + LUCK, + BAD_LUCK; }