Block disguise velocity tweak.
This commit is contained in:
parent
6885f89130
commit
980ce0a5a3
|
@ -387,7 +387,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
|||
velocityPacket.c = (int) (.8 * lastVelocityPacket.c);
|
||||
velocityPacket.d = (int) (.8 * lastVelocityPacket.d);
|
||||
}
|
||||
|
||||
|
||||
_movePacketMap.put(movePacket.a, velocityPacket);
|
||||
|
||||
packetList.forceAdd(velocityPacket);
|
||||
|
@ -402,6 +402,12 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (_spawnPacketMap.get(movePacket.a) instanceof DisguiseBlock)
|
||||
{
|
||||
packetList.forceAdd(velocityPacket);
|
||||
packetList.forceAdd(velocityPacket);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof Packet33RelEntityMoveLook)
|
||||
{
|
||||
|
@ -434,7 +440,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
|||
velocityPacket.c = (int) (.8 * lastVelocityPacket.c);
|
||||
velocityPacket.d = (int) (.8 * lastVelocityPacket.d);
|
||||
}
|
||||
|
||||
|
||||
_movePacketMap.put(movePacket.a, velocityPacket);
|
||||
|
||||
packetList.forceAdd(velocityPacket);
|
||||
|
@ -449,6 +455,12 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (_spawnPacketMap.get(movePacket.a) instanceof DisguiseBlock)
|
||||
{
|
||||
packetList.forceAdd(velocityPacket);
|
||||
packetList.forceAdd(velocityPacket);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof Packet62NamedSoundEffect)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue