Self disguises shouldn't glow or have sprint particles

This commit is contained in:
libraryaddict 2020-04-15 23:25:48 +12:00
parent 6e112ea137
commit b31fc3a251
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -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);
}