From b31fc3a25113c7862804c1e81a0a06f195c0cc5e Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 15 Apr 2020 23:25:48 +1200 Subject: [PATCH] Self disguises shouldn't glow or have sprint particles --- .../packetlisteners/PacketListenerViewSelfDisguise.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java index 10abb43c..a6de2a5d 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java @@ -120,10 +120,8 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter { if (watch.getIndex() == 0) { byte b = (byte) watch.getValue(); - byte a = (byte) (b | 1 << 5); - - if ((b & 1 << 3) != 0) - a = (byte) (a | 1 << 3); + // Add invisibility, remove glowing, remove sprinting + byte a = (byte) (((b | 1 << 5) & ~(1 << 6)) & ~(1 << 3)); watch.setValue(a); }