From d645004abd3ea3d2c58b41eb40b3a87ccd3fed90 Mon Sep 17 00:00:00 2001 From: riking Date: Wed, 4 Jun 2014 14:40:00 -0700 Subject: [PATCH] Revert "Eh, let's just remove the shift by 0. Also doc the method" This reverts commit 23303952b45a295c238fd4ec21b9136aff611c78. --- .../disguise/disguisetypes/watchers/LivingWatcher.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java index 073f43d2..12e6b5f8 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java @@ -85,11 +85,6 @@ public class LivingWatcher extends FlagWatcher { return (Byte) getValue(8, (byte) 0) == 1; } - /** - * This method constructs the insane potion effect format used by Vanilla. - * - * @return potion value to send in packet - */ private int getPotions() { int m = 3694022; @@ -106,7 +101,7 @@ public class LivingWatcher extends FlagWatcher { int n = (Integer) potionNo.invoke(list[localMobEffect]); f1 += (n >> 16 & 0xFF) / 255.0F; f2 += (n >> 8 & 0xFF) / 255.0F; - f3 += (n & 0xFF) / 255.0F; + f3 += (n >> 0 & 0xFF) / 255.0F; f4 += 1.0F; } } catch (Exception ex) {